Skip to content

Commit

Permalink
使用官方的 DarkReader Lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Potat0000 committed Feb 12, 2024
1 parent b61081d commit b17e9ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
1 change: 0 additions & 1 deletion _config.fluid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/head_injector.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b17e9ba

Please sign in to comment.