Files
reference/themes/coo/scripts/merge_configs.js
T
FireIsGood ef823489fe fix: format complex changes
Formats all the general js files. Separate in case these should be
treated differently for any reason. This commit includes all javascript
and HTML files.
2024-05-16 14:37:00 -07:00

9 lines
330 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);
});