From e57d44345c6ec533ed0e7002551c83953e6d1332 Mon Sep 17 00:00:00 2001
From: Latiif alSharif <latiif@mail.com>
Date: Wed, 20 May 2020 18:55:52 +0000
Subject: [PATCH] Allow internationalization for 'Posts' (#337)
---
layouts/posts/list.html | 5 ++---
1 files 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" }}
<section class="container list">
- <h1 class="title">{{ .Title }}</h1>
-
+ <h1 class="title"> {{ i18n (lower .Title) | default .Title }} </h1>
<ul>
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}
--
Gitblit v1.10.0