From 996a5f47e9064da839aef9e81db22db70fa8d76d Mon Sep 17 00:00:00 2001 From: gaaming <15626185054@163.com> Date: Tue, 28 Feb 2023 22:48:06 +0800 Subject: [PATCH] feat(theme): add `home-hero-info` slot (#1807) --- src/client/theme-default/Layout.vue | 1 + src/client/theme-default/components/VPContent.vue | 1 + src/client/theme-default/components/VPHero.vue | 12 +++++++----- src/client/theme-default/components/VPHome.vue | 1 + src/client/theme-default/components/VPHomeHero.vue | 1 + 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index 2e62d4c8..f8d29b56 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -55,6 +55,7 @@ provide('hero-image-slot-exists', heroImageSlotExists) + diff --git a/src/client/theme-default/components/VPContent.vue b/src/client/theme-default/components/VPContent.vue index c0bd52f6..51579196 100644 --- a/src/client/theme-default/components/VPContent.vue +++ b/src/client/theme-default/components/VPContent.vue @@ -29,6 +29,7 @@ const NotFound = inject('NotFound') + diff --git a/src/client/theme-default/components/VPHero.vue b/src/client/theme-default/components/VPHero.vue index c3d515e0..1cec7723 100644 --- a/src/client/theme-default/components/VPHero.vue +++ b/src/client/theme-default/components/VPHero.vue @@ -25,11 +25,13 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref
-

- {{ name }} -

-

{{ text }}

-

{{ tagline }}

+ +

+ {{ name }} +

+

{{ text }}

+

{{ tagline }}

+
diff --git a/src/client/theme-default/components/VPHome.vue b/src/client/theme-default/components/VPHome.vue index 27f8f7b7..a4cda402 100644 --- a/src/client/theme-default/components/VPHome.vue +++ b/src/client/theme-default/components/VPHome.vue @@ -7,6 +7,7 @@ import VPHomeFeatures from './VPHomeFeatures.vue'
+ diff --git a/src/client/theme-default/components/VPHomeHero.vue b/src/client/theme-default/components/VPHomeHero.vue index 36113b44..b9e3060b 100644 --- a/src/client/theme-default/components/VPHomeHero.vue +++ b/src/client/theme-default/components/VPHomeHero.vue @@ -15,6 +15,7 @@ const { frontmatter: fm } = useData() :image="fm.hero.image" :actions="fm.hero.actions" > +