Skip to content

Commit 2a998d3

Browse files
author
reco_luan
committed
fix: hero img tot displayed by default
1 parent 9fcd3fd commit 2a998d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/HomeBlog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
background: `url(${$frontmatter.bgImage ? $withBase($frontmatter.bgImage) : require('../images/home-bg.jpg')}) center/cover no-repeat`}"></div>
88
<ModuleTransition>
99
<img
10-
v-if="$frontmatter.isShowHeroImage !== false && recoShowModule"
10+
v-if="recoShowModule && $frontmatter.isShowHeroImage === true"
1111
:style="heroImageStyle"
1212
:src="$frontmatter.heroImage ? $withBase($frontmatter.heroImage) : require('../images/icon_vuepress_reco.png')"
1313
alt="hero">
1414
</ModuleTransition>
1515
<ModuleTransition>
16-
<h1 v-if="recoShowModule && $frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1>
16+
<h1 v-if="$frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1>
1717
</ModuleTransition>
1818

1919
<ModuleTransition delay="0.08">

0 commit comments

Comments
 (0)