From e57d44345c6ec533ed0e7002551c83953e6d1332 Mon Sep 17 00:00:00 2001 From: Latiif alSharif Date: Wed, 20 May 2020 20:55:52 +0200 Subject: [PATCH] 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. --- layouts/posts/list.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 146e618..109de7a 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,10 +1,9 @@ {{ define "title" }} - {{ .Title }} · {{ .Site.Title }} + {{ i18n (lower .Title) | default .Title }} · {{ .Site.Title }} {{ end }} {{ define "content" }}
-

{{ .Title }}

- +

{{ i18n (lower .Title) | default .Title }}