提交 2ff71904 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix: Solved that enable op_image is invalid

上级 ffbc296b
......@@ -14,7 +14,10 @@ html(lang=config.language)
body
div#container.container
header#header.header
div.header-inner
div.header-inner(style=`${
theme.header.bg_image.enable &&
page.top_image ? 'background: url(' + page.top_image + ') no-repeat center/cover;' : ''
}`)
!= partial('./_partials/header/header.pug', null, { cache: theme.cache })
main#main.main
......
-
var pjaxSelectors = [
'head title',
'#main',
'.pjax-reload'
];
if (theme.header.bg_image.enable) {
pjaxSelectors.push('.header-inner');
}
var pjaxArgs = {
'selectors': [
'head title',
'#main',
'.pjax-reload'
],
'selectors': pjaxSelectors,
'history': theme.pjax.history,
'scrollTo': theme.pjax.scrollTo,
'scrollRestoration': theme.pjax.scrollRestoration,
......
......@@ -9,10 +9,7 @@
height: convert(hexo-config('header.height') || '80vh');
}
if (hexo-config('page.top_image')) {
background: url(hexo-config('page.top_image')) no-repeat center center;
background-size: cover;
} else if (hexo-config('header.bg_image.enable')) {
if (hexo-config('header.bg_image.enable')) {
background: url(hexo-config('header.bg_image.url')) no-repeat center center;
background-size: cover;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册