Okay it works for real this time
This commit is contained in:
parent
547cf0665f
commit
75f6d5f972
1 changed files with 3 additions and 3 deletions
6
blog.js
6
blog.js
|
@ -13,7 +13,7 @@ const defaultConfig = {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
blogPosts: () => {
|
blogPosts: () => {
|
||||||
var posts = []
|
var posts = []
|
||||||
var pinned = []
|
var pinned = ["balls"]
|
||||||
|
|
||||||
var dir = fs.readdirSync(paths.posts)
|
var dir = fs.readdirSync(paths.posts)
|
||||||
dir.sort(function(a, b) {
|
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())
|
Loading…
Reference in a new issue