diff options
author | tdro <tdro@noreply.example.com> | 2022-07-29 21:24:09 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-29 21:24:09 -0400 |
commit | b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e (patch) | |
tree | 984d46e6ddd5edbddc4b0735752c2982c8d36f1c /themes/default/layouts/partials/meta-date-time.html | |
parent | cc0f3566fc82fd8bfdeb6d5e4234f052fcd764e9 (diff) | |
download | canory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.tar.gz canory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.tar.bz2 canory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.zip |
static/js: Add relative dates
Diffstat (limited to 'themes/default/layouts/partials/meta-date-time.html')
-rw-r--r-- | themes/default/layouts/partials/meta-date-time.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/meta-date-time.html b/themes/default/layouts/partials/meta-date-time.html index 60e6d1c..f1e49d0 100644 --- a/themes/default/layouts/partials/meta-date-time.html +++ b/themes/default/layouts/partials/meta-date-time.html @@ -12,10 +12,10 @@ 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> + {{ if .Lastmod.After .Date }} + <span>(edited)</span> + {{- end -}} {{- /* This comment removes trailing newlines and white spaces. */ -}} </a> {{- /* This comment removes trailing newlines and white spaces. */ -}} |