Fixed blog sorting, removed old code
This commit is contained in:
parent
5522555aa2
commit
532a5f9d6f
@ -7,7 +7,7 @@ var docpadConfig = {
|
||||
return this.getCollection("html").findAllLive({relativeOutDirPath: "."}, [{order: 1}]);
|
||||
},
|
||||
posts: function(){
|
||||
var posts = this.getCollection("html").findAllLive({relativeOutDirPath: "blog"});
|
||||
var posts = this.getCollection("html").findAllLive({relativeOutDirPath: "blog"}, [{date: -1}]);
|
||||
posts.on("add", function(post){
|
||||
post.setMetaDefaults({
|
||||
layout: "blogpost"
|
||||
@ -41,13 +41,6 @@ var docpadConfig = {
|
||||
livereload: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
templateData: {
|
||||
site: {
|
||||
scripts: [
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
events: {
|
||||
populateCollections: function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user