From 75f6d5f972b31702f8e67dcd87815b8d192116f8 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 7 Jul 2024 23:29:34 -0500 Subject: [PATCH] Okay it works for real this time --- blog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog.js b/blog.js index c6fbc14..23ca756 100644 --- a/blog.js +++ b/blog.js @@ -13,7 +13,7 @@ const defaultConfig = { module.exports = { blogPosts: () => { var posts = [] - var pinned = [] + var pinned = ["balls"] var dir = fs.readdirSync(paths.posts) dir.sort(function(a, b) { @@ -46,9 +46,9 @@ module.exports = { } } } - return pinned + posts + return pinned.concat(posts) } } -module.exports.blogPosts() \ No newline at end of file +console.log(module.exports.blogPosts()) \ No newline at end of file