From 2e472654ca29c64946e678af4b4ea34e33f9dff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 30 Apr 2014 10:54:44 +0200 Subject: [PATCH] Fix error when calling hooks in site generation --- lib/generate/site/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index e0ae1e4a0..4eee3ca80 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;