mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Transform page after hook "page"
This commit is contained in:
@@ -134,7 +134,9 @@ Generator.prototype.writeParsedFile = function(page) {
|
||||
|
||||
that.book.log.info.ln("write parsed file", page.path, "to", relativeOutput);
|
||||
return that.normalizePage(page)
|
||||
.then(function() {
|
||||
.then(function(_page) {
|
||||
page = _page;
|
||||
|
||||
return that._writeTemplate(that.templates["page"], {
|
||||
progress: page.progress,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user