diff options
author | Anaminus <Anaminus@users.noreply.github.com> | 2022-02-23 04:43:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 04:43:08 +0300 |
commit | ddc100f5c5568e7af9d031c5e7d1de702606df21 (patch) | |
tree | 45efd47648a9b00f01390359fd39cae2747de95e | |
parent | 4791a2394906ad6269ee736ef2130a790332df12 (diff) |
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.
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e7602b7..281e064 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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> |