fix theme...

This commit is contained in:
2024-08-01 08:43:15 +08:00
parent 192ef21b12
commit 02130fba76
371 changed files with 28176 additions and 3285 deletions

View File

@@ -0,0 +1,20 @@
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!");
logger.error("请把 Hexo 升级到 V5.3.0 或更高的版本!");
process.exit(-1);
}
if (hexo.locals.get) {
const data = hexo.locals.get("data");
if (data && data.anzhiyu) {
logger.error(" 'anzhiyu.yml' is deprecated. Please use '_config.anzhiyu.yml' ");
logger.error(" 'anzhiyu.yml' 已经弃用,请使用 '_config.anzhiyu.yml' ");
process.exit(-1);
}
}
});