1. 修復當valine background 是絕對地址時無法顯示的bug

This commit is contained in:
Jerry
2019-12-22 00:50:59 +08:00
Unverified
parent e77ab81941
commit 995fc7cf9d
4 changed files with 8 additions and 12 deletions

View File

@@ -27,7 +27,7 @@
font-size: .7rem
if hexo-config('valine.bg')
background: url(convert(hexo-config('valine.bg'))) 100% 100% no-repeat
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
.info
display: none

View File

@@ -258,7 +258,7 @@ $(function () {
buttons: ['slideShow', 'fullScreen', 'thumbs', 'close']
})
} else if (isMediumZoom) {
const zoom = mediumZoom(document.querySelectorAll('.mediumZoom'))
const zoom = mediumZoom(document.querySelectorAll(':not(a)>img'))
zoom.on('open', event => {
const photoBg = $(document.documentElement).attr('data-theme') === 'dark' ? '#121212' : '#fff'
zoom.update({