fix: CDN配置為 local 時 mathjax 字體缺失的 bug close #893

This commit is contained in:
Jerry
2022-05-11 00:18:19 +08:00
Unverified
parent 3e30f301a0
commit 793e004a3a
5 changed files with 7 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ hexo.extend.filter.register('before_generate', () => {
const data = path.join(hexo.plugin_dir,'hexo-butterfly-extjs/plugins.yml')
result = hexo.render.renderSync({ path: data, engine: 'yaml'})
Object.keys(result).map(key => {
result[key] = 'pluginsSrc/' + result[key]
result[key] = '/pluginsSrc/' + result[key]
})
} catch (e) {}
return result