Move hard-coded strings to i18n files

Add translations in English and in Japanese
This commit is contained in:
Jack Taylor 2017-04-02 18:58:27 +09:00
commit 0f74f45531
9 changed files with 86 additions and 19 deletions

View file

@ -39,12 +39,12 @@
</a>
<p class="post-meta">
Posted on {{ .Date.Format (default "January 2, 2006" .Site.Params.dateFormat) }}
{{ default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format | i18n "postedOnDate" }}
</p>
<div class="post-entry">
{{ if .Truncated }}
{{ .Summary }}
<a href="{{ .Permalink }}" class="post-read-more">[Read&nbsp;More]</a>
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
{{ else }}
{{ .Content }}
{{ end }}