chore: v5.7.0

- Remove APlayer/Meting music player support
- Upgrade Artalk to 2.10.0 and add vote feature
- Cache plugins.yml to avoid re-rendering on every generate
- Add null safety for error_404 and highlight config
- Fix series date timestamp format
- Enhance shuoshuo mockPost compatibility and error handling
- Prevent scrollbar flicker when fancybox is open
- Update plugin versions (docsearch, katex, twikoo)
- Bump version to 5.7.0
This commit is contained in:
myw
2026-08-04 22:52:53 +08:00 Unverified
parent 85a1412b94
commit 51d36ef83a
20 changed files with 165 additions and 110 deletions
-23
View File
@@ -1,23 +0,0 @@
link(rel='stylesheet' href=url_for(theme.asset.aplayer_css) media="print" onload="this.media='all'")
script(src=url_for(theme.asset.aplayer_js))
script(src=url_for(theme.asset.meting_js))
if theme.pjax.enable
script.
(() => {
const destroyAplayer = () => {
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
}
const runMetingJS = () => {
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
}
btf.addGlobalFn('pjaxSend', destroyAplayer, 'destroyAplayer')
btf.addGlobalFn('pjaxComplete', loadMeting, 'runMetingJS')
})()
+9
View File
@@ -43,4 +43,13 @@ hr.custom-hr
when 'Remark42'
#remark42
when 'Artalk'
if theme.artalk.vote
.artalk-vote
span.artalk-page-vote-up
i.fas.fa-thumbs-up
span.artalk-page-vote-up-count
span.artalk-page-vote-down
i.fas.fa-thumbs-down
span.artalk-page-vote-down-count
#artalk-wrap