From 80dc4d72546ecbc908794b12717b2569fb18041b Mon Sep 17 00:00:00 2001 From: reco_luan Date: Mon, 9 Dec 2019 11:31:35 +0800 Subject: [PATCH] fix: fix title display in homeBlog.vue --- components/HomeBlog.vue | 10 +++++----- example/docs/README.md | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/HomeBlog.vue b/components/HomeBlog.vue index 4de14bb..6a7b9e3 100644 --- a/components/HomeBlog.vue +++ b/components/HomeBlog.vue @@ -7,12 +7,12 @@ background: `url(${$frontmatter.bgImage ? $withBase($frontmatter.bgImage) : require('../images/home-bg.jpg')}) center/cover no-repeat`}"> hero - +

{{ $frontmatter.heroText || $title || '午后南杂' }}

@@ -184,7 +184,7 @@ export default { bottom 0 left 0 right 0 - z-index 0 + z-index -1 &:after { display block content ' ' diff --git a/example/docs/README.md b/example/docs/README.md index cecb006..32b4966 100644 --- a/example/docs/README.md +++ b/example/docs/README.md @@ -1,15 +1,15 @@ --- home: true -heroImage: /hero.png -heroImageStyle: { - maxWidth: '600px', - width: '100%', - display: block, - margin: '9rem auto 2rem', - background: '#fff', - borderRadius: '1rem', -} -isShowTitleInHome: false +# heroImage: /hero.png +# heroImageStyle: { +# maxWidth: '600px', +# width: '100%', +# display: block, +# margin: '9rem auto 2rem', +# background: '#fff', +# borderRadius: '1rem', +# } +# isShowTitleInHome: false actionText: Guide actionLink: /views/other/guide features: