aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-17 18:54:19 -0400
committertdro <tdro@noreply.example.com>2023-10-17 18:54:19 -0400
commit187e4ff528ee5395efb52f20f95d9f9a1c7d83a6 (patch)
treef072cee906a7ec73f838ee8cfad2fe44e1cd8088 /static
parent95048ae38f44b6510c526631ed9fedd605e1db2c (diff)
downloadcanory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.gz
canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.tar.bz2
canory-187e4ff528ee5395efb52f20f95d9f9a1c7d83a6.zip
themes/default/layouts/_default/home.archives: Pull out time line
Diffstat (limited to 'static')
-rw-r--r--static/js/timeago.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/js/timeago.ts b/static/js/timeago.ts
index 9cc5370..f794c4a 100644
--- a/static/js/timeago.ts
+++ b/static/js/timeago.ts
@@ -24,6 +24,8 @@
(function (element) {
try {
+ if (element.dataset.type === "disabled") return;
+
const time: millisecond = new Date(element.dateTime) || new Date();
const interval: second = ((new Date().getTime() - time.getTime()) / 1000);