Allow internationalization for 'Posts' (#337)

* Allow internationalization for 'Posts'

* Apply internationalization to page title as well.

- I18n files should have an entry for the original title in lowercase.
This commit is contained in:
Latiif alSharif
2020-05-20 20:55:52 +02:00
committed by GitHub
parent 60f7098910
commit e57d44345c

View File

@@ -1,10 +1,9 @@
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ i18n (lower .Title) | default .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container list">
<h1 class="title">{{ .Title }}</h1>
<h1 class="title"> {{ i18n (lower .Title) | default .Title }} </h1>
<ul>
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}