Use localization files in templates.

This commit is contained in:
2020-08-12 17:41:47 -07:00
parent b0e501f086
commit bda78fed78
8 changed files with 44 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
<li>
<a href="{{ .Permalink }}" class="post-title">{{ .Title }}</a>
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
<p class="post-wordcount">{{ i18n "ReadingTime" . }}</p>
<p class="post-preview">{{ .Summary }} . . .</p>
</li>