Based on mod date now
This commit is contained in:
parent
d8c19bd0ab
commit
9f972233d6
1 changed files with 1 additions and 1 deletions
2
index.js
2
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}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue