mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-02 16:18:32 -04:00
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:
parent
4791a23949
commit
ddc100f5c5
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue