diff options
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index f8986df..f0ed784 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -124,13 +124,20 @@ Generator.prototype.convertFile = function(content, _input) { }); }) .then(function(sections) { + // Use plugin hook + return that.callHook("page", { + sections: sections, + progress: progress + }) + }) + .then(function(_page) { that.manifest.add("CACHE", _output); return that._writeTemplate(that.template, { - progress: progress, + progress: _page.progress, _input: _input, - content: sections, + content: _page.sections, basePath: basePath, staticBase: path.join(basePath, "gitbook"), |