Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/LukasJoswiak/etch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnaminus <Anaminus@users.noreply.github.com>2022-02-23 04:43:08 +0300
committerGitHub <noreply@github.com>2022-02-23 04:43:08 +0300
commitddc100f5c5568e7af9d031c5e7d1de702606df21 (patch)
tree45efd47648a9b00f01390359fd39cae2747de95e
parent4791a2394906ad6269ee736ef2130a790332df12 (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.html2
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>