1614 次
1 回答
5
To display all posts on index page, you have to access site
object and not page
because page
object only have a defined number of posts (per_page
variable in config.yml
).
And to filter only posts tagged with "features", you can use this query
site.tags.findOne({name: 'featured'}).posts.forEach(function(post) {
// do what you have to do with each post
})
于 2016-08-18T14:28:21.683 回答