From 187e4ff528ee5395efb52f20f95d9f9a1c7d83a6 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 17 Oct 2023 18:54:19 -0400 Subject: themes/default/layouts/_default/home.archives: Pull out time line --- static/js/timeago.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static') 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); -- cgit v1.2.3