-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.8.2 #472
Closed
+3,967
−1,815
Closed
v2.8.2 #472
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
16eb926
创建黑幕遮罩控制器
QSlotus 91b8f3a
新增黑幕遮罩相关样式
QSlotus 548723c
新增黑幕遮罩配置项
QSlotus e4be3ac
fix: 修复了启用delete_mask配置项时笔记块不渲染黑幕遮罩的问题
QSlotus 71245fa
fix: 修复了启用delete_mask配置项时大笔记块不渲染黑幕遮罩的问题
QSlotus c7cc024
fix: 修复正则表达式以正确匹配并处理<del>标签
QSlotus 385c1d4
feat:Add og image and og description for every page. Set default og i…
BrotherJie 09aa3f5
fix: use IIFE for aplayer #463
EvanNotFound f0f412a
Merge pull request #464 from qiusyan-projects/main
EvanNotFound 6276693
feat: update Open Graph configuration and deprecate old format
EvanNotFound 2dcfd59
Merge pull request #471 from BrotherJie/feature/og-image
EvanNotFound aa93c7b
Merge pull request #473 from EvanNotFound/feature/og-image
EvanNotFound 433a59f
feat: move build folder
EvanNotFound 931e83c
refactor: move build files to js/build and css/build
EvanNotFound dc93991
feat: update mermaid plugin configuration and implementation #470
EvanNotFound e831035
ci: fix build
EvanNotFound d1cd956
ci: fix build
EvanNotFound cd84a2b
ci: debug
EvanNotFound e0010cd
ci: check
EvanNotFound 7e83095
ci: screw it
EvanNotFound File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
paths: | ||
- 'source/js/**' | ||
- 'source/css/**' | ||
- 'source/build/**' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div id="aplayer"></div> | ||
<%- renderJS('js/libs/APlayer.min.js') %> | ||
<%- renderJS('js/plugins/aplayer.js') %> | ||
<%- renderJS('libs/APlayer.min.js') %> | ||
<%- renderJS('plugins/aplayer.js') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,90 @@ | ||
<%- renderJS([ | ||
'js/tools/imageViewer.js', | ||
'js/utils.js', | ||
'js/main.js', | ||
'js/layouts/navbarShrink.js', | ||
'js/tools/scrollTopBottom.js', | ||
'js/tools/lightDarkSwitch.js', | ||
'js/layouts/categoryList.js' | ||
'tools/imageViewer.js', | ||
'utils.js', | ||
'main.js', | ||
'layouts/navbarShrink.js', | ||
'tools/scrollTopBottom.js', | ||
'tools/lightDarkSwitch.js', | ||
'layouts/categoryList.js' | ||
],{ | ||
module: true | ||
}) %> | ||
|
||
<% if (theme.navbar.search.enable) { %> | ||
<%- renderJS('js/tools/localSearch.js', { | ||
<%- renderJS('tools/localSearch.js', { | ||
module: true | ||
}) %> | ||
<% } %> | ||
|
||
<% if (theme.articles.code_block.copy) { %> | ||
<%- renderJS('js/tools/codeBlock.js', { | ||
<%- renderJS('tools/codeBlock.js', { | ||
module: true | ||
}) %> | ||
<% } %> | ||
|
||
<% if (theme.articles.lazyload) { %> | ||
<%- renderJS('js/layouts/lazyload.js', { | ||
<%- renderJS('layouts/lazyload.js', { | ||
module: true | ||
}) %> | ||
<% } %> | ||
|
||
<% if (theme.footer.runtime) { %> | ||
<%- renderJS('js/tools/runtime.js') %> | ||
<%- renderJS('js/libs/odometer.min.js') %> | ||
<%- renderJS('tools/runtime.js') %> | ||
<%- renderJS('libs/odometer.min.js') %> | ||
<%- renderCSS('assets/odometer-theme-minimal.css') %> | ||
<% } %> | ||
|
||
<% if (theme.home_banner.subtitle.length !== 0) { %> | ||
<%- renderJS('js/libs/Typed.min.js') %> | ||
<%- renderJS('js/plugins/typed.js', { | ||
<%- renderJS('libs/Typed.min.js') %> | ||
<%- renderJS('plugins/typed.js', { | ||
module: true | ||
}) %> | ||
<% } %> | ||
|
||
<% if (theme.plugins.mermaid.enable) { %> | ||
<%- renderJS('js/libs/mermaid.min.js') %> | ||
<%- renderJS('js/plugins/mermaid.js') %> | ||
<% if (theme.plugins.mermaid.version === '11.4.1') { %> | ||
<%- renderJS('libs/mermaid.min.js') %> | ||
<% } else { %> | ||
<script src="https://cdn.jsdelivr.net/npm/mermaid@<%= theme.plugins.mermaid.version %>/dist/mermaid.min.js"></script> | ||
<% } %> | ||
<%- renderJS('plugins/mermaid.js') %> | ||
<% } %> | ||
|
||
<% if (theme.masonry || theme.photos || theme.gallery) { %> | ||
<%- renderJS('js/libs/minimasonry.min.js') %> | ||
<%- renderJS('js/plugins/masonry.js', { | ||
<%- renderJS('libs/minimasonry.min.js') %> | ||
<%- renderJS('plugins/masonry.js', { | ||
module: true | ||
}) %> | ||
<% } %> | ||
|
||
<% if (theme.global.preloader === false || theme.global.preloader.enable === false) { %> | ||
<%- renderJS('js/libs/anime.min.js')%> | ||
<%- renderJS('libs/anime.min.js')%> | ||
<% } %> | ||
|
||
|
||
<% if (theme.articles.toc.enable) { %> | ||
<%- renderJS([ | ||
'js/tools/tocToggle.js', | ||
'js/layouts/toc.js', | ||
'js/plugins/tabs.js' | ||
'tools/tocToggle.js', | ||
'layouts/toc.js', | ||
'plugins/tabs.js' | ||
], { | ||
module: true, | ||
swupReload: true | ||
}) %> | ||
<% } %> | ||
|
||
<%- renderJS('js/libs/moment-with-locales.min.js', { swupReload: true }) %> | ||
<%- renderJS('js/layouts/essays.js', { swupReload: true, module: true }) %> | ||
<%- renderJS('libs/moment-with-locales.min.js', { swupReload: true }) %> | ||
<%- renderJS('layouts/essays.js', { swupReload: true, module: true }) %> | ||
|
||
<% if (theme.articles.pangu_js) { %> | ||
<%- renderJS([ | ||
'js/libs/pangu.min.js', | ||
'js/plugins/pangu.js' | ||
'libs/pangu.min.js', | ||
'plugins/pangu.js' | ||
]) %> | ||
<% } %> | ||
|
||
<% if (theme.bookmarks && theme.bookmarks.length !== 0) { %> | ||
<%- renderJS('js/layouts/bookmarkNav.js', { | ||
<%- renderJS('layouts/bookmarkNav.js', { | ||
module: true | ||
}) %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* delete mask */ | ||
|
||
"use strict"; | ||
|
||
hexo.extend.filter.register( | ||
"after_post_render", | ||
function (data) { | ||
const theme = this.theme; | ||
|
||
// 处理del标签的代码 | ||
const regPureDelTag = /<del(?:\s+[^>]*)?>((?:(?!<\/?del[\s>])[^])*)<\/del>/g; | ||
|
||
data.content = data.content.replace( | ||
regPureDelTag, | ||
function (match, html) { | ||
// 只有在配置为true时才添加mask类 | ||
if (theme.config.articles.style.delete_mask === true) { | ||
return `<del class="mask">${html}</del>`; | ||
} | ||
return match; | ||
} | ||
); | ||
|
||
return data; | ||
}, | ||
0 | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fix potential regex issue with empty character class
The regular expression includes a negated empty character class
[^]
which could be problematic. Consider using a more explicit pattern.📝 Committable suggestion
🧰 Tools
🪛 Biome (1.9.4)
[error] 11-11: The regular expression includes this negated empty character class.
Negated empty character classes match anything.
If you want to match against [, escape it [.
Otherwise, remove the character class or fill it.
(lint/correctness/noEmptyCharacterClassInRegex)