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}]);
|
return this.getCollection("html").findAllLive({relativeOutDirPath: "."}, [{order: 1}]);
|
||||||
},
|
},
|
||||||
posts: function(){
|
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){
|
posts.on("add", function(post){
|
||||||
post.setMetaDefaults({
|
post.setMetaDefaults({
|
||||||
layout: "blogpost"
|
layout: "blogpost"
|
||||||
@ -42,13 +42,6 @@ var docpadConfig = {
|
|||||||
enabled: true
|
enabled: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
templateData: {
|
|
||||||
site: {
|
|
||||||
scripts: [
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
events: {
|
events: {
|
||||||
populateCollections: function(){
|
populateCollections: function(){
|
||||||
this.docpad.blocks["scripts"].add([
|
this.docpad.blocks["scripts"].add([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user