aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-expiry-date.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-29 21:24:09 -0400
committertdro <tdro@noreply.example.com>2022-07-29 21:24:09 -0400
commitb163db67a35a10e153a4fa88d1e1f1d8f9a21f8e (patch)
tree984d46e6ddd5edbddc4b0735752c2982c8d36f1c /themes/default/layouts/partials/meta-expiry-date.html
parentcc0f3566fc82fd8bfdeb6d5e4234f052fcd764e9 (diff)
downloadcanory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.tar.gz
canory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.tar.bz2
canory-b163db67a35a10e153a4fa88d1e1f1d8f9a21f8e.zip
static/js: Add relative dates
Diffstat (limited to 'themes/default/layouts/partials/meta-expiry-date.html')
-rw-r--r--themes/default/layouts/partials/meta-expiry-date.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-expiry-date.html b/themes/default/layouts/partials/meta-expiry-date.html
index a4ddeea..0521e60 100644
--- a/themes/default/layouts/partials/meta-expiry-date.html
+++ b/themes/default/layouts/partials/meta-expiry-date.html
@@ -3,10 +3,10 @@
{{- $duration := lang.FormatNumberCustom 0 (math.Round (mul (div $diff.Hours 24) -1)) -}}
<micro-metadata-expiry>
+ {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/trash-2.svg")) -}}
<time
datetime= "{{- .ExpiryDate | time.Format "2006-01-02T15:04:05Z" -}}"
title="Self destructs within {{ $duration }} days ({{ .ExpiryDate | time.Format "Monday, January 2 2006 at 15:04:05 MST" }})">
- {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/trash-2.svg")) -}}
{{- .ExpiryDate | time.Format "Jan 2 2006" -}}
{{- /* This comment removes trailing newlines and white spaces. */ -}}
</time>