From e35915a561183850b258afed559fae50f9535a1e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 25 Aug 2020 01:40:02 +0530 Subject: [PATCH] support Multilingual navigation add reading time as i18n --- layouts/_default/archives.html | 2 +- layouts/_default/baseof.html | 2 +- layouts/_default/index.html | 2 +- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/partials/footer.html | 2 +- layouts/partials/header.html | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 9661bee4..f2db38f0 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -20,7 +20,7 @@
{{- if or .Params.author .Site.Params.author }}{{- .Params.author | default .Site.Params.author }} · {{ end }} - {{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ $.Site.Params.MinuteReadingTime | default "min read" }} + {{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} · {{ end }} {{- .Date.Format "January 2, 2006" -}}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5daa4bf2..106f360c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . }} diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 33fcbdf5..7376ab1b 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -52,7 +52,7 @@ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 21224c39..4e7e14d0 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -28,7 +28,7 @@ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2b1d417d..4aee13f0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,7 +31,7 @@ {{- if .Params.tags }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 12c79084..95e94f4f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@