diff options
-rw-r--r-- | lib/output/website.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/output/website.js b/lib/output/website.js index 1cdd4a6..bbb3fdc 100644 --- a/lib/output/website.js +++ b/lib/output/website.js @@ -74,7 +74,7 @@ WebsiteOutput.prototype.prepare = function() { that.env = new nunjucks.Environment(new nunjucks.FileSystemLoader(searchPaths)); - that.env.addGlobal('__', function(s) { + that.env.addFilter('t', function(s) { // todo: i18n return s; }); @@ -116,6 +116,7 @@ WebsiteOutput.prototype.prepare = function() { var assetFolder = path.join(folder, '_assets', that.name); if (!fs.existsSync(assetFolder)) return; + that.log.debug.ln('copy assets from theme', assetFolder); return fs.copyDir( assetFolder, that.resolve('gitbook'), |