Skip to content

Commit 80dc4d7

Browse files
author
reco_luan
committed
fix: fix title display in homeBlog.vue
1 parent 106f72d commit 80dc4d7

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

components/HomeBlog.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
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="recoShowModule && $frontmatter.isShowHeroImage === true"
11-
:style="heroImageStyle"
12-
:src="$frontmatter.heroImage ? $withBase($frontmatter.heroImage) : require('../images/icon_vuepress_reco.png')"
10+
v-if="recoShowModule && $frontmatter.heroImage"
11+
:style="heroImageStyle || {}"
12+
:src="$withBase($frontmatter.heroImage)"
1313
alt="hero">
1414
</ModuleTransition>
15-
<ModuleTransition>
15+
<ModuleTransition delay="0.04">
1616
<h1 v-if="$frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1>
1717
</ModuleTransition>
1818

@@ -184,7 +184,7 @@ export default {
184184
bottom 0
185185
left 0
186186
right 0
187-
z-index 0
187+
z-index -1
188188
&:after {
189189
display block
190190
content ' '

example/docs/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
home: true
3-
heroImage: /hero.png
4-
heroImageStyle: {
5-
maxWidth: '600px',
6-
width: '100%',
7-
display: block,
8-
margin: '9rem auto 2rem',
9-
background: '#fff',
10-
borderRadius: '1rem',
11-
}
12-
isShowTitleInHome: false
3+
# heroImage: /hero.png
4+
# heroImageStyle: {
5+
# maxWidth: '600px',
6+
# width: '100%',
7+
# display: block,
8+
# margin: '9rem auto 2rem',
9+
# background: '#fff',
10+
# borderRadius: '1rem',
11+
# }
12+
# isShowTitleInHome: false
1313
actionText: Guide
1414
actionLink: /views/other/guide
1515
features:

0 commit comments

Comments
 (0)