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