diff --git a/src/_data/posts.js b/src/_data/posts.js index 72f7871..f3643c6 100644 --- a/src/_data/posts.js +++ b/src/_data/posts.js @@ -100,12 +100,8 @@ const mapComment = comment => ({ module.exports = async () => { - // const cache = new PostCache(); - // await cache.fetchLatest(); - - const cache = { - posts: [] - } + const cache = new PostCache(); + await cache.fetchLatest(); return Object.values(cache.posts) .sort(dateSort) @@ -122,4 +118,4 @@ module.exports = async () => { return comments; }, { like: [], reply: [], repost: [] }) })); -}; \ No newline at end of file +};