summaryrefslogtreecommitdiffstats
path: root/lib/generate/page/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-10-30 18:01:56 +0100
committerSamy Pessé <samypesse@gmail.com>2014-10-30 18:01:56 +0100
commitd1c0cb9c71409a7e0ce17133a334c9296e161847 (patch)
treef68ec52d74f870b1805063b794be8235a1182ba6 /lib/generate/page/index.js
parent38c750101c479940d94759bd820d00f90a03f14d (diff)
downloadgitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.zip
gitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.tar.gz
gitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.tar.bz2
Normalize template paths
Diffstat (limited to 'lib/generate/page/index.js')
-rw-r--r--lib/generate/page/index.js4
1 files changed, 2 insertions, 2 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')
);
};