Files
reference/themes/coo/scripts/merge_configs.js
T
2022-11-16 14:10:09 +08:00

9 lines
332 B
JavaScript

/**
* Merge all `theme_config.*` options from main Hexo config into hexo.theme.config.
* This fixes an issue with hexo-renderer-stylus, which otherwise ignores these
* configuration overrides.
*/
hexo.on('generateBefore', function () {
hexo.theme.config = Object.assign({}, hexo.theme.config, hexo.config.theme_config);
});