2016-01-07 10:25:27 +00:00
|
|
|
// 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({
|
2016-01-07 10:44:54 +00:00
|
|
|
layout: "contentpage"
|
2016-01-07 10:25:27 +00:00
|
|
|
});
|
|
|
|
});
|
2016-01-07 10:44:54 +00:00
|
|
|
return projects;
|
2016-01-07 10:25:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: {
|
|
|
|
cleanurls: {
|
|
|
|
static: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = docpadConfig;
|