summaryrefslogtreecommitdiffstats
path: root/lib/output/website.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-21 01:02:20 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-21 01:02:20 +0100
commit2f15e26ffa9ca67007e9f23ac732fed0fcb109d9 (patch)
tree81c80adddaa8437e3ec7bda26bf62f8b62f014ff /lib/output/website.js
parentb4cdbc6534b12d4547898077b7d5b2fd2b2163d0 (diff)
downloadgitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.zip
gitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.tar.gz
gitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.tar.bz2
Fix context for templating and page
Diffstat (limited to 'lib/output/website.js')
-rw-r--r--lib/output/website.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/website.js b/lib/output/website.js
index d856229..1cdd4a6 100644
--- a/lib/output/website.js
+++ b/lib/output/website.js
@@ -138,7 +138,7 @@ WebsiteOutput.prototype.onPage = function(page) {
// Render the page template with the same context as the json output
.then(function() {
- return that.render('page', that.getPageContext(page));
+ return that.render('page', page.getContext());
})
// Write the HTML file