diff --git a/i18n/en.toml b/i18n/en.toml index d8c852c..4535bec 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -4,6 +4,9 @@ other = "Search" [summary-dateformat] other = "Jan 2, 2006" +[reading-time] +other = "min read" + [taxo-tags] other = "Tags" diff --git a/i18n/ko.toml b/i18n/ko.toml index 520ed6e..980b660 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -4,6 +4,9 @@ other = "검색" [summary-dateformat] other = "2006년 01월 02일" +[reading-time] +other = "min read" + [taxo-tags] other = "태그" diff --git a/i18n/zh.toml b/i18n/zh.toml index 2ef4ee2..72e0af5 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -4,6 +4,9 @@ other = "搜索" [summary-dateformat] other = "2006年 01月 02日" +[reading-time] +other = "分钟" + [taxo-tags] other = "标签" diff --git a/layouts/partials/body/infos.html b/layouts/partials/body/infos.html index cab0591..60ecfd0 100644 --- a/layouts/partials/body/infos.html +++ b/layouts/partials/body/infos.html @@ -1,5 +1,5 @@
- 🕓 {{ .Date.Format (i18n "single-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕ {{ .ReadingTime }} min read + 🕓 {{ .Date.Format (i18n "single-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }} {{ if (and .Site.Params.enableBusuanzi .Site.Params.busuanziPagePV) }} · 👀... {{ i18n "counter-page-pv" }}{{ end }} diff --git a/layouts/partials/summary/card.html b/layouts/partials/summary/card.html index 8416e4f..b30a2a4 100644 --- a/layouts/partials/summary/card.html +++ b/layouts/partials/summary/card.html @@ -1,7 +1,7 @@
{{ .Title }}
-
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} min read
+
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} {{ i18n "reading-time" }}
{{ $params := .Params }}
diff --git a/layouts/partials/summary/classic.html b/layouts/partials/summary/classic.html index d75ce43..84f8a2d 100644 --- a/layouts/partials/summary/classic.html +++ b/layouts/partials/summary/classic.html @@ -11,7 +11,7 @@
{{ .Title }}
-
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} min read +
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} {{ i18n "reading-time" }}
diff --git a/layouts/partials/summary/compact.html b/layouts/partials/summary/compact.html index f1104a2..2968c96 100644 --- a/layouts/partials/summary/compact.html +++ b/layouts/partials/summary/compact.html @@ -4,7 +4,7 @@
{{ .Title }}
-
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} min read +
🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} · 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} · ☕{{ .ReadingTime }} {{ i18n "reading-time" }}