Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/LukasJoswiak/etch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html18
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>