Add i18n support

This commit is contained in:
James Panther
2021-08-17 16:48:08 +10:00
parent 18ed642ae4
commit 64dd424b80
18 changed files with 66 additions and 22 deletions
+2 -3
View File
@@ -11,8 +11,7 @@
<span class="px-1">&middot;</span>
{{ end }}
{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }}
<span title="Reading time">
{{ .ReadingTime }}
min{{ if gt .ReadingTime 1 }}s{{ end }}
<span title="{{ i18n "article.reading_time_title" }}">
{{ i18n "article.reading_time" .ReadingTime | emojify }}
</span>
{{ end }}