diff --git a/lib/theme/index.js b/lib/theme/index.js index 3dcfb5d1dd..b6dc3efe54 100644 --- a/lib/theme/index.js +++ b/lib/theme/index.js @@ -66,7 +66,7 @@ Theme.prototype._generate = function(options, callback){ config = hexo.config, route = hexo.route, siteLocals = hexo.locals._generate(), - themeLocals = _.extend({}, config, this.config), + themeLocals = _.extend({}, config, this.config, config.theme_config), env = hexo.env, i18n = this.i18n, layoutDir = pathFn.join(this.base, 'layout') + pathFn.sep, @@ -204,4 +204,4 @@ Theme.prototype.getView = function(path){ } else { return views[Object.keys(views)[0]]; } -}; \ No newline at end of file +};