Skip to content

Commit

Permalink
Merge pull request #757 from jaredly/master
Browse files Browse the repository at this point in the history
Allow theme config to be overridden by site config
  • Loading branch information
tommy351 committed Jul 30, 2014
2 parents 1545874 + 2fb8de2 commit 1b7490f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -204,4 +204,4 @@ Theme.prototype.getView = function(path){
} else {
return views[Object.keys(views)[0]];
}
};
};

0 comments on commit 1b7490f

Please # to comment.