Fix modification date displaying as original date.

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-22 09:53:52 -06:00 committed by GitHub
parent 4791a23949
commit 2e480f81d7
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>