Fix generation of pdf header/footer

This commit is contained in:
Samy Pessé
2016-02-21 18:23:59 +01:00
parent 5f058f2ceb
commit ab541c1653
+3 -2
View File
@@ -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()
}