diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 15:15:11 +0200 |
| commit | 6b2b8e81e631a1fec44bdb94d5177cf5c56287c9 (patch) | |
| tree | 994d425dd7ea4e4d57986e64fefd712de8011c03 /layouts/partials/post-meta/date.html | |
| parent | 512e94b28b243105e053c1090f56ac31846bc7cf (diff) | |
| download | gohugo-theme-ed-6b2b8e81e631a1fec44bdb94d5177cf5c56287c9.tar.gz | |
Added multilanguage support
Diffstat (limited to 'layouts/partials/post-meta/date.html')
| -rw-r--r-- | layouts/partials/post-meta/date.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html index 29a86b8..92401e7 100644 --- a/layouts/partials/post-meta/date.html +++ b/layouts/partials/post-meta/date.html @@ -1,11 +1,10 @@ {{- if not .Date.IsZero }} <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- .Date.Format (site.Params.dateformat | default "January 02, 2006") -}} + {{- .Date | time.Format (site.Params.dateformat | default "January 02, 2006") -}} </time> {{- if ne .Date .Lastmod }} <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- /* TODO: Translate me */}} - (Updated: {{ .Lastmod.Format (site.Params.dateformat | default "January 02, 2006") -}}) + ({{ i18n "updated_at" }} {{ .Lastmod | time.Format (site.Params.dateformat | default "January 02, 2006") -}}) </time> {{- end -}} {{- end }} |
