mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
Update init.js
This commit is contained in:
committed by
GitHub
Unverified
parent
4bd5edd955
commit
f07823903f
@@ -1,8 +1,7 @@
|
||||
const logger = hexo.log
|
||||
|
||||
hexo.extend.filter.register('before_generate', () => {
|
||||
// Get first two digits of the Hexo version number
|
||||
const hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
|
||||
const logger = hexo.log
|
||||
|
||||
if (hexoVer < 5.3) {
|
||||
logger.error('Please update Hexo to V5.3.0 or higher!')
|
||||
|
||||
Reference in New Issue
Block a user