diff --git a/blog.js b/blog.js index cca29d1..8ba5779 100644 --- a/blog.js +++ b/blog.js @@ -39,12 +39,13 @@ module.exports = { } if (config.pinned) { - posts.unshift(config) - } else { posts.push(config) + } else { + posts.unshift(config) } } } + posts.reverse() return posts }