summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes/daysfrom.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
committereltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
commit10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch)
tree62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_shortcodes/daysfrom.html
parent3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff)
chore: move templates out of site repo
Diffstat (limited to 'layouts/_shortcodes/daysfrom.html')
-rw-r--r--layouts/_shortcodes/daysfrom.html12
1 files changed, 0 insertions, 12 deletions
diff --git a/layouts/_shortcodes/daysfrom.html b/layouts/_shortcodes/daysfrom.html
deleted file mode 100644
index c2750480..00000000
--- a/layouts/_shortcodes/daysfrom.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{- $date := .Get 0 -}}
-{{- $t := time $date -}}
-{{- $now := now -}}
-{{- $durSeconds := sub $now.Unix $t.Unix | int -}}
-
-{{- $days := div $durSeconds 86400 -}}
-
-{{- if lt $days 0 -}}
- {{ mul $days -1 }}
-{{- else -}}
- {{ $days }}
-{{- end -}}