From 9f972233d69fbe98daef78d3cfac5c358e2e99fa Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Fri, 5 Jan 2024 15:40:46 -0600 Subject: [PATCH] Based on mod date now --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4fea7d3..1bc204b 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function pageUpdate() { for (let index = 0; index < postsArray.length; index++) { const item = postsArray[index]; const absPath = path.join(postsPath, item) - const birthtime = fs.statSync(absPath).birthtime + const birthtime = fs.statSync(absPath).mtime posts[birthtime] = {"post": item.substring(0, item.length - 3), "date": birthtime} }