Fix error when calling hooks in site generation

This commit is contained in:
Samy Pessé
2014-04-30 10:54:44 +02:00
parent d46bd14678
commit 2e472654ca
+1 -1
View File
@@ -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;