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.
This commit is contained in:
Anaminus 2022-02-23 01:43:08 +00:00 committed by GitHub
parent 4791a23949
commit ddc100f5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>