From b94c82710a7b230a918790ac0b6aa1d2f5afc1c3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 7 Sep 2021 22:28:27 -0400 Subject: [PATCH] fix(default-theme): use description as tagline by default --- .../theme-default/components/HomeHero.vue | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/client/theme-default/components/HomeHero.vue b/src/client/theme-default/components/HomeHero.vue index 9ff14a759cab..eb396dd0aac0 100644 --- a/src/client/theme-default/components/HomeHero.vue +++ b/src/client/theme-default/components/HomeHero.vue @@ -6,17 +6,15 @@ import NavLink from './NavLink.vue' const { site, frontmatter } = useData() const showHero = computed(() => { - const { - heroImage, - heroText, - tagline, - actionLink, - actionText - } = frontmatter.value + const { heroImage, heroText, tagline, actionLink, actionText } = + frontmatter.value return heroImage || heroText || tagline || (actionLink && actionText) }) const heroText = computed(() => frontmatter.value.heroText || site.value.title) +const tagline = computed( + () => frontmatter.value.tagline || site.value.description +)