bg-image: url('')

This commit is contained in:
alpaca0x0
2020-12-31 16:13:31 +08:00
parent 3bfb792b3c
commit 1d98df49d5
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ if page.top_img !== false
- var top_img = page.top_img || theme.default_top_img
if top_img !== false
- var imgSource = top_img && top_img.indexOf('/') !== -1 ? `background-image: url(${url_for(top_img)})` : `background: ${top_img}`
- var imgSource = top_img && top_img.indexOf('/') !== -1 ? `background-image: url('${url_for(top_img)}')` : `background: ${top_img}`
- var bg_img = top_img ? imgSource : ''
- var site_title = is_archive() ? _p('page.archives') : page.title || page.tag || page.category || config.title
- var isHomeClass = is_home() ? 'full_page' : 'not-index-bg'