diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-02-27 12:09:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-27 12:09:57 +0800 |
| commit | a5e7bf113274a9288b0728c625934ebf3cda7533 (patch) | |
| tree | d86bc51639a21cf91c418c1e2439806310bddbf7 /includes | |
| parent | d8358ad37b4ac5f9a6029a09d6c517cbf444c6a9 (diff) | |
:wink: Perf: 移除首页大图颜色选项
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/header.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index 667357d..9caec0b 100644 --- a/includes/header.php +++ b/includes/header.php @@ -151,11 +151,11 @@ <div id="pjax-container"><!-- 开始 pjax-container --> <header> <?php if($this->is('post') || $this->is('page')): ?> - <div class="index-banner" style="background-position:center;<?php if($this->fields->banner && $this->fields->banner=!''): ?>background:url('<?php $this->fields->banner(); ?>') no-repeat;<?php else: ?>background-color:<?php $this->options->bannerColor(); ?>;<?php endif; ?>height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;"> + <div class="index-banner" style="background-position:center!important;<?php if($this->fields->banner && $this->fields->banner=!''): ?>background:url('<?php $this->fields->banner(); ?>') no-repeat;<?php endif; ?>height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;"> <?php elseif($this->is('archive')): ?> - <div class="index-banner" style="height:<?php $this->options->bannerHeight(); ?>vh;background-position:center;background-color:<?php $this->options->bannerColor(); ?>;<?php if($this->options->bannerUrl!=''): echo $this->options->bannerUrl(); endif; ?>"> + <div class="index-banner" style="height:<?php $this->options->bannerHeight(); ?>vh;background-position:center!important;<?php if($this->options->bannerUrl!=''): echo $this->options->bannerUrl(); endif; ?>"> <?php else: ?> - <div class="index-banner" style="background-position:center;background:url('<?php $this->options->bannerUrl(); ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;background-color:<?php $this->options->bannerColor(); ?>"> + <div class="index-banner" style="background-position:center;background:url('<?php $this->options->bannerUrl(); ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;"> <?php endif; ?> <div class="banner-mask"<?php if($this->is('post') || $this->is('page')):?><?php if($this->fields->banner==''):?> style="background:rgba(0,0,0,0)!important"<?php endif;?><?php endif; ?><?php if($this->is('index')):?><?php if($this->options->bannerUrl && $this->options->bannerUrl=!''): ?><?php else:?> style="background:rgba(0,0,0,0)!important"<?php endif;?><?php endif;?>> <div class="main-container container"> |
