Files
hexo-theme-shoka/scripts/generaters/config.js
2020-09-02 21:28:24 +08:00

10 lines
246 B
JavaScript

'use strict';
const merge = require('hexo-util').deepMerge || require('lodash/merge');
hexo.on('generateBefore', function () {
if (hexo.config.theme_config) {
hexo.theme.config = merge(hexo.theme.config, hexo.config.theme_config);
}
})