fix: TypeError: require(...) is not a function

This commit is contained in:
GZTime
2022-11-16 03:36:24 +08:00
Unverified
parent 5c0d578e4c
commit ecf4d341e6
2 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
const logger = require('hexo-log')()
const logger = hexo.log;
hexo.extend.filter.register('before_generate', () => {
// Get first two digits of the Hexo version number

View File

@@ -1,16 +1,16 @@
const logger = require('hexo-log')()
const logger = hexo.log;
hexo.on('ready', () => {
const { version } = require('../../package.json')
logger.info(`
===================================================================
##### # # ##### ##### ###### ##### ###### # # #
# # # # # # # # # # # # #
##### # # # # ##### # # ##### # #
# # # # # # # ##### # # #
# # # # # # # # # # # #
##### #### # # ###### # # # ###### #
##### # # ##### ##### ###### ##### ###### # # #
# # # # # # # # # # # # #
##### # # # # ##### # # ##### # #
# # # # # # # ##### # # #
# # # # # # # # # # # #
##### #### # # ###### # # # ###### #
${version}
===================================================================`)