mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
fix: CDN配置為 local 時 mathjax 字體缺失的 bug close #893
This commit is contained in:
1 parent
3e30f301a0
commit
793e004a3a
5 files changed
+7
-7
No files matched your search
@@ -4,9 +4,9 @@ hexo.extend.filter.register('before_generate', () => {
|
||||
// Get first two digits of the Hexo version number
|
||||
const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
|
||||
|
||||
if (hexoVer < 5) {
|
||||
logger.error('Please update Hexo to V5.0.0 or higher!')
|
||||
logger.error('請把 Hexo 升級到 V5.0.0 或更高的版本!')
|
||||
if (hexoVer < 5.3) {
|
||||
logger.error('Please update Hexo to V5.3.0 or higher!')
|
||||
logger.error('請把 Hexo 升級到 V5.3.0 或更高的版本!')
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user