summaryrefslogtreecommitdiffstats
path: root/lib/generate/site/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/site/index.js
parent38c750101c479940d94759bd820d00f90a03f14d (diff)
downloadgitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.zip
gitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.tar.gz
gitbook-d1c0cb9c71409a7e0ce17133a334c9296e161847.tar.bz2
Normalize template paths
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r--lib/generate/site/index.js6
1 files changed, 3 insertions, 3 deletions
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')
);
};