Switched to docpad.js (run with "docpad.cmd run" on windows)

This commit is contained in:
Tim Stallard 2016-01-07 10:44:54 +00:00
parent 92f4138dcc
commit b7af1f60ca

View File

@ -1,4 +1,3 @@
`
// DocPad Configuration File // DocPad Configuration File
// http://docpad.org/docs/config // http://docpad.org/docs/config
@ -14,10 +13,10 @@ var docpadConfig = {
var projects = this.getCollection("html").findAllLive({relativeOutDirPath: "projects"}); var projects = this.getCollection("html").findAllLive({relativeOutDirPath: "projects"});
projects.on("add", function(model){ projects.on("add", function(model){
model.setMetaDefaults({ model.setMetaDefaults({
layout: "page" layout: "contentpage"
}); });
}); });
return this.getCollection("html").findAll({relativeOutDirPath: "projects"}); return projects;
} }
}, },
plugins: { plugins: {
@ -28,4 +27,3 @@ var docpadConfig = {
} }
module.exports = docpadConfig; module.exports = docpadConfig;
`