diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index db7888c..e7602b7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,15 +2,15 @@ <article> <header id="post-header"> <h1>{{ .Title }}</h1> - <div> - {{- if isset .Params "date" -}} - {{ if eq .Lastmod .Date }} - <time>{{ .Date.Format "January 2, 2006" }}</time> - {{ else }} - Updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time> - {{ end }} - {{- end -}} - </div> + <div> + {{- if isset .Params "date" -}} + {{ if eq .Lastmod .Date }} + <time>{{ .Date | time.Format (i18n "post.created") }}</time> + {{ else }} + <time>{{ .Date | time.Format (i18n "post.updated") }}</time> + {{ end }} + {{- end -}} + </div> </header> {{- .Content -}} </article> |