diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-30 10:54:44 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-30 10:54:45 +0200 |
commit | 2e472654ca29c64946e678af4b4ea34e33f9dff1 (patch) | |
tree | 0b4c3b955f5e4227a74b498dd59561e492554af3 /lib/generate/site/index.js | |
parent | d46bd14678cc729304c7012f9163caa0aaf6b477 (diff) | |
download | gitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.zip gitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.tar.gz gitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.tar.bz2 |
Fix error when calling hooks in site generation
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index e0ae1e4..4eee3ca 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -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; |