mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
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:
@@ -1,10 +1,9 @@
|
|||||||
{{ define "title" }}
|
{{ define "title" }}
|
||||||
{{ .Title }} · {{ .Site.Title }}
|
{{ i18n (lower .Title) | default .Title }} · {{ .Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<section class="container list">
|
<section class="container list">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title"> {{ i18n (lower .Title) | default .Title }} </h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Paginator.Pages -}}
|
{{- range .Paginator.Pages -}}
|
||||||
{{- .Render "li" -}}
|
{{- .Render "li" -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user