guh
This commit is contained in:
parent
d762572b87
commit
3f032510f0
1 changed files with 3 additions and 2 deletions
5
blog.js
5
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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue