From ab541c165366feeebda10e1b5dfce42ba1b5db3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 21 Feb 2016 18:23:59 +0100 Subject: [PATCH] Fix generation of pdf header/footer --- lib/output/ebook.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/output/ebook.js b/lib/output/ebook.js index 6d531f8a6..2db5be3fc 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() }