aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-date-time.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-10 23:57:52 -0400
committertdro <tdro@noreply.example.com>2022-06-10 23:57:52 -0400
commited5ac80fac302574d5643bf6f69066805d520075 (patch)
tree5d8aebfdef22b58f78554133f718f108c998040f /themes/default/layouts/partials/meta-date-time.html
parentf759443d0c4f4d44a48e4dc971778718683c6e0e (diff)
downloadcanory-ed5ac80fac302574d5643bf6f69066805d520075.tar.gz
canory-ed5ac80fac302574d5643bf6f69066805d520075.tar.bz2
canory-ed5ac80fac302574d5643bf6f69066805d520075.zip
themes/default/layouts/partials/meta-date-time: Add edited notification
Diffstat (limited to 'themes/default/layouts/partials/meta-date-time.html')
-rw-r--r--themes/default/layouts/partials/meta-date-time.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html
index e254639..cac7e68 100644
--- a/themes/default/layouts/partials/meta-date-time.html
+++ b/themes/default/layouts/partials/meta-date-time.html
@@ -7,8 +7,12 @@
{{ end }}
<time
datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
- title="{{ .Date | time.Format "Monday, January 2, 2006 at 15:04:05 MST" }}">
+ title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}
+{{ if .Lastmod.After .Date }}{{ .Lastmod | time.Format "Edited: Monday, January 2, 2006 at 15:04:05 MST" }}{{ end }}">
{{ (.Date.Local | time.Format "3:04 PM Jan 2 2006") -}}
+ {{ if .Lastmod.After .Date }}
+ (edited)
+ {{ end }}
</time>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</a>