diff options
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/page/index.js | 4 | ||||
-rw-r--r-- | lib/generate/site/index.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 068358c..8e44187 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -21,10 +21,10 @@ util.inherits(Generator, BaseGenerator); Generator.prototype.loadTemplates = function() { this.template = swig.compileFile( - this.plugins.template("page") || path.resolve(this.options.theme, 'templates/page/page.html') + this.plugins.template("ebook:page") || path.resolve(this.options.theme, 'templates/ebook/page.html') ); this.summaryTemplate = swig.compileFile( - this.plugins.template("page/sumary") || path.resolve(this.options.theme, 'templates/page/summary.html') + this.plugins.template("ebook:sumary") || path.resolve(this.options.theme, 'templates/ebook/summary.html') ); }; diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 6d86c7c..a62108b 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -36,13 +36,13 @@ Generator.prototype.load = function() { // Load all templates Generator.prototype.loadTemplates = function() { this.template = swig.compileFile( - this.plugins.template("site") || path.resolve(this.options.theme, 'templates/site.html') + this.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/book/page.html') ); this.langsTemplate = swig.compileFile( - this.plugins.template("langs") || path.resolve(this.options.theme, 'templates/langs.html') + this.plugins.template("site:langs") || path.resolve(this.options.theme, 'templates/book/langs.html') ); this.glossaryTemplate = swig.compileFile( - this.plugins.template("glossary") || path.resolve(this.options.theme, 'templates/glossary.html') + this.plugins.template("site:glossary") || path.resolve(this.options.theme, 'templates/book/glossary.html') ); }; |