Based on mod date now

This commit is contained in:
Bingus_Violet 2024-01-05 15:40:46 -06:00
parent d8c19bd0ab
commit 9f972233d6

View file

@ -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}
}