From b17e9ba9320a326dbdfd13aef05cb1884b4ece6b Mon Sep 17 00:00:00 2001 From: Potat0 Date: Mon, 12 Feb 2024 19:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=AE=98=E6=96=B9=E7=9A=84?= =?UTF-8?q?=20DarkReader=20Lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 1 - _config.fluid.yml | 1 - scripts/head_injector.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e68599..09819d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,6 @@ jobs: cp source/img/icon/favicon.ico source/ curl https://cdn.jsdelivr.net/gh/PrismJS/prism-themes@master/themes/prism-material-light.min.css --create-dirs -o node_modules/prismjs/themes/prism-materiallight.css curl https://cdn.jsdelivr.net/gh/PrismJS/prism-themes@master/themes/prism-material-oceanic.min.css --create-dirs -o node_modules/prismjs/themes/prism-materialoceanic.css - curl https://cdn.jsdelivr.net/npm/no-darkreader@1/nodarkreader.min.js --create-dirs -o source/lib/nodarkreader/nodarkreader.min.js sed -i 's,http://,https://,g' node_modules/hexo-theme-fluid/layout/_partials/footer/beian.ejs - name: Build run: | diff --git a/_config.fluid.yml b/_config.fluid.yml index 180769b..3a23f15 100644 --- a/_config.fluid.yml +++ b/_config.fluid.yml @@ -232,7 +232,6 @@ font: # 指定自定义 .js 文件路径,支持列表;路径是相对 source 目录,如 /js/custom.js 对应存放目录 source/js/custom.js # Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js` custom_js: - - /lib/nodarkreader/nodarkreader.min.js # 指定自定义 .css 文件路径,用法和 custom_js 相同 # The usage is the same as custom_js diff --git a/scripts/head_injector.js b/scripts/head_injector.js index f53d01f..9cfb862 100644 --- a/scripts/head_injector.js +++ b/scripts/head_injector.js @@ -1,3 +1,3 @@ -hexo.extend.injector.register('head_begin', '', 'default'); +hexo.extend.injector.register('head_begin', '', 'default'); hexo.extend.injector.register('head_end', '', 'default');