diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-21 18:23:59 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-21 18:23:59 +0100 |
commit | ab541c165366feeebda10e1b5dfce42ba1b5db3f (patch) | |
tree | ceff8492c7a60e88e94b20871d505dd69df4aa0d /lib/output/ebook.js | |
parent | 5f058f2ceb77490cbbeaa56523e128e0a46a0dea (diff) | |
download | gitbook-ab541c165366feeebda10e1b5dfce42ba1b5db3f.zip gitbook-ab541c165366feeebda10e1b5dfce42ba1b5db3f.tar.gz gitbook-ab541c165366feeebda10e1b5dfce42ba1b5db3f.tar.bz2 |
Fix generation of pdf header/footer
Diffstat (limited to 'lib/output/ebook.js')
-rw-r--r-- | lib/output/ebook.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/output/ebook.js b/lib/output/ebook.js index 6d531f8..2db5be3 100644 --- a/lib/output/ebook.js +++ b/lib/output/ebook.js @@ -72,7 +72,8 @@ EbookOutput.prototype.getPDFTemplate = function(tpl) { // Nunjucks context mapping to ebook-convert templating page: { num: '_PAGENUM_', - title: '_TITLE_' + title: '_TITLE_', + section: '_SECTION_' } }, this.getContext() @@ -82,7 +83,7 @@ EbookOutput.prototype.getPDFTemplate = function(tpl) { // Inline css, include css relative to the output folder .then(function(output) { - return Promise.nfcall(juice.juiceResources, tpl, { + return Promise.nfcall(juice.juiceResources, output, { webResources: { relativeTo: that.root() } |