From 0c90acaa04fc5f8cf734ca17afc322f5934765cf Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 6 Feb 2024 22:12:28 +0100 Subject: [PATCH] Fix recent post highlight date threshold It was actually set to 96 hours for testing. --- _includes/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/footer.html b/_includes/footer.html index 4d0a97f3cf..c81faa9c4c 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -84,7 +84,7 @@ document.querySelectorAll('[data-post-date]').forEach((postDate) => { // Highlight post dates that are less than 48 hours old. - if (Date.parse(postDate.dataset.postDate) > (Date.now() - 1000 * 60 * 60 * 96)) { + if (Date.parse(postDate.dataset.postDate) > (Date.now() - 1000 * 60 * 60 * 48)) { postDate.classList.add("post-recent-highlight"); }; });