From 400aef121389cf4fdeb1fb72a4f4338ced150491 Mon Sep 17 00:00:00 2001 From: latiif Date: Mon, 18 May 2020 19:55:23 +0200 Subject: [PATCH 1/2] Allow internationalization for 'Posts' --- layouts/posts/list.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 146e618c1..e873bafec 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -3,7 +3,13 @@ {{ end }} {{ define "content" }}
-

{{ .Title }}

+

+ {{- if i18n .Title}} + {{- i18n .Title }} + {{ else }} + {{- .Title }} + {{ end }} +