mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 09:33:21 +00:00
Fix generation of pdf header/footer
This commit is contained in:
+3
-2
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user