mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
Fix error when calling hooks in site generation
This commit is contained in:
@@ -115,7 +115,7 @@ Generator.prototype.convertFile = function(content, _input) {
|
||||
};
|
||||
|
||||
var _callHook = function(name) {
|
||||
return that.callHook("page:before", page)
|
||||
return that.callHook(name, page)
|
||||
.then(function(_page) {
|
||||
page = _page;
|
||||
return page;
|
||||
|
||||
Reference in New Issue
Block a user