Compare commits

...

2 commits

Author SHA1 Message Date
Lukas Joswiak 22bac358d6 Use full month name for post date 2022-02-22 17:45:44 -08:00
Anaminus ddc100f5c5
Fix modification date displaying as original date (#33)
When `lastmod` is specified, a post would indicate that it was updated, but it incorrectly used the original date instead of the modification date.
2022-02-22 17:43:08 -08:00
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ other = "Jan 2, 2006"
[post]
[post.created]
other = "Jan 2, 2006"
other = "January 2, 2006"
[post.updated]
other = "Updated Jan 2, 2006"
other = "Updated January 2, 2006"

View file

@ -7,7 +7,7 @@
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
{{ else }}
<time>{{ .Date | time.Format (i18n "post.updated") }}</time>
<time>{{ .Lastmod | time.Format (i18n "post.updated") }}</time>
{{ end }}
{{- end -}}
</div>