Okay it works for real this time

This commit is contained in:
bingus_violet 2024-07-07 23:29:34 -05:00
parent 547cf0665f
commit 75f6d5f972

View file

@ -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()
console.log(module.exports.blogPosts())