fix: fix title display in homeBlog.vue
This commit is contained in:
parent
106f72d860
commit
80dc4d7254
@ -7,12 +7,12 @@
|
|||||||
background: `url(${$frontmatter.bgImage ? $withBase($frontmatter.bgImage) : require('../images/home-bg.jpg')}) center/cover no-repeat`}"></div>
|
background: `url(${$frontmatter.bgImage ? $withBase($frontmatter.bgImage) : require('../images/home-bg.jpg')}) center/cover no-repeat`}"></div>
|
||||||
<ModuleTransition>
|
<ModuleTransition>
|
||||||
<img
|
<img
|
||||||
v-if="recoShowModule && $frontmatter.isShowHeroImage === true"
|
v-if="recoShowModule && $frontmatter.heroImage"
|
||||||
:style="heroImageStyle"
|
:style="heroImageStyle || {}"
|
||||||
:src="$frontmatter.heroImage ? $withBase($frontmatter.heroImage) : require('../images/icon_vuepress_reco.png')"
|
:src="$withBase($frontmatter.heroImage)"
|
||||||
alt="hero">
|
alt="hero">
|
||||||
</ModuleTransition>
|
</ModuleTransition>
|
||||||
<ModuleTransition>
|
<ModuleTransition delay="0.04">
|
||||||
<h1 v-if="$frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1>
|
<h1 v-if="$frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1>
|
||||||
</ModuleTransition>
|
</ModuleTransition>
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ export default {
|
|||||||
bottom 0
|
bottom 0
|
||||||
left 0
|
left 0
|
||||||
right 0
|
right 0
|
||||||
z-index 0
|
z-index -1
|
||||||
&:after {
|
&:after {
|
||||||
display block
|
display block
|
||||||
content ' '
|
content ' '
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
home: true
|
home: true
|
||||||
heroImage: /hero.png
|
# heroImage: /hero.png
|
||||||
heroImageStyle: {
|
# heroImageStyle: {
|
||||||
maxWidth: '600px',
|
# maxWidth: '600px',
|
||||||
width: '100%',
|
# width: '100%',
|
||||||
display: block,
|
# display: block,
|
||||||
margin: '9rem auto 2rem',
|
# margin: '9rem auto 2rem',
|
||||||
background: '#fff',
|
# background: '#fff',
|
||||||
borderRadius: '1rem',
|
# borderRadius: '1rem',
|
||||||
}
|
# }
|
||||||
isShowTitleInHome: false
|
# isShowTitleInHome: false
|
||||||
actionText: Guide
|
actionText: Guide
|
||||||
actionLink: /views/other/guide
|
actionLink: /views/other/guide
|
||||||
features:
|
features:
|
||||||
|
Loading…
Reference in New Issue
Block a user