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

@@ -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)
}