From 7b569cce425c0b630f00e378449c4d8809e471fe Mon Sep 17 00:00:00 2001 From: MHuiG <616001163@qq.com> Date: Mon, 5 Sep 2022 08:05:32 +0800 Subject: [PATCH] perf(debug): env pjax rightMenus --- _config.yml | 2 +- layout/_partial/scripts/global.ejs | 2 +- layout/_plugins/pjax/index.ejs | 2 +- scripts/events/index.js | 4 +++- scripts/events/lib/check-environment.js | 8 ++++++++ source/js/plugins/rightMenus.js | 2 +- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 550895ad7..51336b557 100755 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ info: theme_docs: https://volantis.js.org/ # This is theme's URL. theme_repo: https://github.com/volantis-x/hexo-theme-volantis # Debug 调试模式 -debug: false +debug: env # false: 关闭调试模式, env:环境配置检查, pjax:调试pjax,rightMenus: 调试右键 ############################### 默认占位图 ############################### default: avatar: volantis-static/media/placeholder/avatar/round/3442075.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg diff --git a/layout/_partial/scripts/global.ejs b/layout/_partial/scripts/global.ejs index 05c8f3215..082557f84 100644 --- a/layout/_partial/scripts/global.ejs +++ b/layout/_partial/scripts/global.ejs @@ -1,7 +1,7 @@