timstallard.me.uk/docpad.js

30 lines
667 B
JavaScript

// DocPad Configuration File
// http://docpad.org/docs/config
var docpadConfig = {
collections: {
pages: function(){
return this.getCollection("html").findAllLive({relativeOutDirPath: "."}, [{order: 1}]);
},
posts: function(){
return this.getCollection("html").findAll({relativeOutDirPath: "blog"});
},
projects: function(){
var projects = this.getCollection("html").findAllLive({relativeOutDirPath: "projects"});
projects.on("add", function(model){
model.setMetaDefaults({
layout: "contentpage"
});
});
return projects;
}
},
plugins: {
cleanurls: {
static: true
}
}
}
module.exports = docpadConfig;