bloggify-theme-light
Version:
A light and simple theme for Bloggify.
18 lines (16 loc) • 479 B
JavaScript
;
var path = require("path");
exports.init = function (conf) {
conf.templates.forEach(function (c) {
var tmpl = Bloggify.renderer.registerTemplate(path.resolve(__dirname, "..", c));
tmpl.data = { theme: conf.options };
});
Bloggify.server.errorPages({
notFound: function notFound(ctx) {
ctx.render("404");
},
serverError: function serverError(ctx) {
ctx.render("500");
}
});
};