diff options
-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() } |