mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
Merge branch 'dev'
This commit is contained in:
commit
c6c58f7620
6 files changed
+30
-17
No files matched your search
@@ -16,6 +16,16 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: modify
|
||||||
|
attributes:
|
||||||
|
label: 是否修改过主题文件? || Has the theme files been modified?
|
||||||
|
options:
|
||||||
|
- 是 (Yes)
|
||||||
|
- 不是 (No)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: browser
|
id: browser
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -120,5 +120,5 @@ script.
|
|||||||
},
|
},
|
||||||
isPhotoFigcaption: !{theme.photofigcaption},
|
isPhotoFigcaption: !{theme.photofigcaption},
|
||||||
islazyload: !{theme.lazyload.enable},
|
islazyload: !{theme.lazyload.enable},
|
||||||
isAnchor: !{theme.anchor.auto_update}
|
isAnchor: !{theme.anchor.auto_update || false}
|
||||||
}
|
}
|
||||||
+5
-6
@@ -7,7 +7,7 @@ script.
|
|||||||
tags: 'ams'
|
tags: 'ams'
|
||||||
},
|
},
|
||||||
chtml: {
|
chtml: {
|
||||||
scale: 1.2
|
scale: 1.1
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
renderActions: {
|
renderActions: {
|
||||||
@@ -23,12 +23,11 @@ script.
|
|||||||
}
|
}
|
||||||
}, ''],
|
}, ''],
|
||||||
insertScript: [200, () => {
|
insertScript: [200, () => {
|
||||||
document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => {
|
document.querySelectorAll('mjx-container').forEach(node => {
|
||||||
const target = node.parentNode
|
if (node.hasAttribute('display')) {
|
||||||
if (target.nodeName.toLowerCase() === 'li') {
|
btf.wrap(node, 'div', { class: 'mathjax-overflow' })
|
||||||
target.parentNode.classList.add('has-jax')
|
|
||||||
} else {
|
} else {
|
||||||
target.classList.add('has-jax')
|
btf.wrap(node, 'span', { class: 'mathjax-overflow' })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, '', false]
|
}, '', false]
|
||||||
|
|||||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user