This commit is contained in:
Jerry
2025-02-16 20:38:17 +08:00
parent 1f3ea55890
commit f605e6dc89
210 changed files with 16126 additions and 16118 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -8,11 +8,12 @@
else
!= `©${currentYear} By ${config.author}`
if theme.footer.copyright
- const v = getVersion()
.framework-info
span= _p('footer.framework') + ' '
a(href='https://hexo.io')= 'Hexo'
a(href='https://hexo.io')= `Hexo ${v.hexo}`
span.footer-separator |
span= _p('footer.theme') + ' '
a(href='https://github.com/jerryc127/hexo-theme-butterfly')= 'Butterfly'
a(href='https://github.com/jerryc127/hexo-theme-butterfly')= `Butterfly ${v.theme}`
if theme.footer.custom_text
.footer_custom_text!= theme.footer.custom_text

View File

@@ -7,10 +7,12 @@ if theme.pjax.exclude
- let choose = theme.comments.use
if choose
if theme.Open_Graph_meta.enable && (choose.includes('Livere') || choose.includes('Utterances') || choose.includes('Giscus'))
- pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
if choose.includes('Utterances') || choose.includes('Giscus')
if choose.includes('Livere') || choose.includes('Utterances') || choose.includes('Giscus')
- pjaxSelectors.unshift('link[rel="canonical"]')
if theme.Open_Graph_meta.enable
- pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]', 'meta[property="og:description"]')
else
- pjaxSelectors.unshift('meta[name="description"]')
script(src=url_for(theme.asset.pjax))
script.
@@ -57,7 +59,7 @@ script.
document.addEventListener('pjax:error', e => {
if (e.request.status === 404) {
pjax.loadUrl('!{url_for("/404.html")}')
window.location.href = e.request.responseURL
}
})
})()

View File

@@ -1,6 +1,6 @@
{
"name": "hexo-theme-butterfly",
"version": "5.3.2",
"version": "5.3.3",
"description": "A Simple and Card UI Design theme for Hexo",
"main": "package.json",
"scripts": {

View File

@@ -9,7 +9,7 @@ activate_power_mode:
algolia_search:
name: algoliasearch
file: dist/lite/builds/browser.umd.js
version: 5.19.0
version: 5.20.2
aplayer_css:
name: aplayer
file: dist/APlayer.min.css
@@ -66,12 +66,12 @@ docsearch_css:
name: '@docsearch/css'
other_name: docsearch-css
file: dist/style.css
version: 3.8.2
version: 3.8.3
docsearch_js:
name: '@docsearch/js'
other_name: docsearch-js
file: dist/umd/index.js
version: 3.8.2
version: 3.8.3
egjs_infinitegrid:
name: '@egjs/infinitegrid'
other_name: egjs-infinitegrid
@@ -111,17 +111,17 @@ instantpage:
instantsearch:
name: instantsearch.js
file: dist/instantsearch.production.min.js
version: 4.75.7
version: 4.77.3
katex:
name: katex
file: dist/katex.min.css
other_name: KaTeX
version: 0.16.19
version: 0.16.21
katex_copytex:
name: katex
file: dist/contrib/copy-tex.min.js
other_name: KaTeX
version: 0.16.19
version: 0.16.21
lazyload:
name: vanilla-lazyload
file: dist/lazyload.iife.min.js
@@ -203,9 +203,9 @@ waline_css:
name: '@waline/client'
file: dist/waline.css
other_name: waline
version: 3.4.3
version: 3.5.2
waline_js:
name: '@waline/client'
file: dist/waline.js
other_name: waline
version: 3.4.3
version: 3.5.2

View File

@@ -145,3 +145,8 @@ hexo.extend.helper.register('getPageType', (page, isHome) => {
if (isHome) return 'home'
return 'post'
})
hexo.extend.helper.register('getVersion', () => {
const { version } = require('../../package.json')
return { hexo: hexo.version, theme: version }
})