From ad87304302178198f5c9bdee99e07aa712a797f0 Mon Sep 17 00:00:00 2001 From: Android Date: Mon, 5 Jul 2021 00:23:19 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=8B=E6=83=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E7=9A=84=E5=A4=B4=E5=83=8F=E5=B8=A6=E6=9C=89?= =?UTF-8?q?=20FancyBox=20=E7=81=AF=E7=AE=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/main.js b/source/js/main.js index 19f6644..14a412e 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -305,7 +305,7 @@ document.addEventListener('DOMContentLoaded', function () { const jqLoadAndRun = () => { const $fancyboxEle = GLOBAL_CONFIG.lightbox === 'fancybox' - ? document.querySelectorAll('#article-container :not(a):not(.gallery-group) > img, #article-container > img') + ? document.querySelectorAll('#article-container :not(a):not(.gallery-group):not(.flink-item-icon) > img, #article-container > img') : [] const fbLengthNoZero = $fancyboxEle.length > 0 const $jgEle = document.querySelectorAll('#article-container .justified-gallery') From 32b83a0d811d531b5b26aa43b377aa4404bbdb04 Mon Sep 17 00:00:00 2001 From: Android Date: Mon, 5 Jul 2021 03:14:48 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=8B=E6=83=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E7=9A=84=E5=A4=B4=E5=83=8F=E5=B8=A6=E6=9C=89?= =?UTF-8?q?=20Medium=20Zoom=20=E7=81=AF=E7=AE=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/main.js b/source/js/main.js index 14a412e..4bf8839 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -294,7 +294,7 @@ document.addEventListener('DOMContentLoaded', function () { } const addMediumZoom = () => { - const zoom = mediumZoom(document.querySelectorAll('#article-container :not(a)>img')) + const zoom = mediumZoom(document.querySelectorAll('#article-container :not(a):not(.flink-item-icon) > img')) zoom.on('open', e => { const photoBg = document.documentElement.getAttribute('data-theme') === 'dark' ? '#121212' : '#fff' zoom.update({ From eca1487a5e7774f6fe2e937abe63d455ac78e76b Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 6 Jul 2021 15:52:21 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9=20inline=20mathja?= =?UTF-8?q?x=20=E6=9C=89=E6=BB=BE=E5=8B=95=E6=A2=9D=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/third-party/math/mathjax.pug | 12 +++++++++++- package.json | 2 +- source/css/_layout/third-party.styl | 7 ++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/layout/includes/third-party/math/mathjax.pug b/layout/includes/third-party/math/mathjax.pug index f58689e..b784218 100644 --- a/layout/includes/third-party/math/mathjax.pug +++ b/layout/includes/third-party/math/mathjax.pug @@ -21,7 +21,17 @@ script. math.end = {node: text, delim: '', n: 0} doc.math.push(math) } - }, ''] + }, ''], + insertScript: [200, () => { + document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => { + const target = node.parentNode + if (target.nodeName.toLowerCase() === 'li') { + target.parentNode.classList.add('has-jax') + } else { + target.classList.add('has-jax') + } + }); + }, '', false] } } } diff --git a/package.json b/package.json index d9751d2..e10e10b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.8.0", + "version": "3.8.1-b1", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/source/css/_layout/third-party.styl b/source/css/_layout/third-party.styl index 8899d24..0d3fc08 100644 --- a/source/css/_layout/third-party.styl +++ b/source/css/_layout/third-party.styl @@ -90,14 +90,11 @@ if hexo-config('waline.bg') display: none // mathjax -mjx-container +mjx-container[display], +.has-jax overflow-x: auto overflow-y: hidden - &:not([display]) - display: inline-grid - max-width: 100% - .aplayer color: $font-black From bbb9beb8f942a55857683351e7aa5baf1666edf4 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 10 Jul 2021 22:29:20 +0800 Subject: [PATCH 4/4] Dependencies: update hexo-renderer-pug --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e10e10b..4a9118b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.8.1-b1", + "version": "3.8.1", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { @@ -24,7 +24,7 @@ }, "dependencies": { "hexo-renderer-stylus": "^2.0.1", - "hexo-renderer-pug": "^1.0.0" + "hexo-renderer-pug": "^2.0.0" }, "homepage": "https://butterfly.js.org/", "author": "Jerry ",