mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-17 05:28:31 -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 }}
|
{{ if eq .Lastmod .Date }}
|
||||||
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
|
<time>{{ .Date | time.Format (i18n "post.created") }}</time>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<time>{{ .Date | time.Format (i18n "post.updated") }}</time>
|
<time>{{ .Lastmod | time.Format (i18n "post.updated") }}</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue