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 committed 2026-08-04 22:52:53 +08:00
1 parent 85a1412b94
commit 51d36ef83a
20 files changed
+165 -110

No files matched your search

+1 -4
View File
@@ -378,6 +378,7 @@ module.exports = {
server: null,
site: null,
visitor: false,
vote: false,
option: null
},
chat: {
@@ -555,10 +556,6 @@ module.exports = {
enable: false,
exclude: null
},
aplayerInject: {
enable: false,
per_page: true
},
snackbar: {
enable: false,
position: 'bottom-left',
+2 -1
View File
@@ -6,7 +6,8 @@
'use strict'
hexo.extend.generator.register('404', function (locals) {
if (!hexo.theme.config.error_404.enable) return
const error404 = hexo.theme.config.error_404 || {}
if (!error404.enable) return
return {
path: '404.html',
layout: ['page'],
+9 -1
View File
@@ -8,11 +8,19 @@
const { version } = require('../../package.json')
const path = require('path')
// Cache plugins.yml to avoid re-rendering on every generate
let cachedPlugins = null
const loadPlugins = hexo => {
if (cachedPlugins) return cachedPlugins
cachedPlugins = hexo.render.renderSync({ path: path.join(hexo.theme_dir, '/plugins.yml'), engine: 'yaml' })
return cachedPlugins
}
hexo.extend.filter.register('before_generate', () => {
const themeConfig = hexo.theme.config
const { CDN } = themeConfig
const thirdPartySrc = hexo.render.renderSync({ path: path.join(hexo.theme_dir, '/plugins.yml'), engine: 'yaml' })
const thirdPartySrc = loadPlugins(hexo)
const internalSrc = {
main: {
name: 'hexo-theme-butterfly',
Loaded 3 of 20 files, more files were not shown because too many files have changed in this diff. Show more