mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: CDN配置為 local 時 mathjax 字體缺失的 bug close #893
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "4.2.0",
|
"version": "4.2.1",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
const data = path.join(hexo.plugin_dir,'hexo-butterfly-extjs/plugins.yml')
|
const data = path.join(hexo.plugin_dir,'hexo-butterfly-extjs/plugins.yml')
|
||||||
result = hexo.render.renderSync({ path: data, engine: 'yaml'})
|
result = hexo.render.renderSync({ path: data, engine: 'yaml'})
|
||||||
Object.keys(result).map(key => {
|
Object.keys(result).map(key => {
|
||||||
result[key] = 'pluginsSrc/' + result[key]
|
result[key] = '/pluginsSrc/' + result[key]
|
||||||
})
|
})
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
return result
|
return result
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
// Get first two digits of the Hexo version number
|
// Get first two digits of the Hexo version number
|
||||||
const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
|
const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
|
||||||
|
|
||||||
if (hexoVer < 5) {
|
if (hexoVer < 5.3) {
|
||||||
logger.error('Please update Hexo to V5.0.0 or higher!')
|
logger.error('Please update Hexo to V5.3.0 or higher!')
|
||||||
logger.error('請把 Hexo 升級到 V5.0.0 或更高的版本!')
|
logger.error('請把 Hexo 升級到 V5.3.0 或更高的版本!')
|
||||||
process.exit(-1)
|
process.exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user