From b2224d33d4a7d252a9a56c7e6313363fc6106d1a Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Fri, 27 Sep 2024 08:40:22 +0800 Subject: [PATCH] feat(theme): add `target`/`rel` attrs to hero actions (#223) --- theme/src/client/components/Home/VPHomeHero.vue | 2 ++ theme/src/shared/frontmatter/home.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/theme/src/client/components/Home/VPHomeHero.vue b/theme/src/client/components/Home/VPHomeHero.vue index 3848e931..1da52814 100644 --- a/theme/src/client/components/Home/VPHomeHero.vue +++ b/theme/src/client/components/Home/VPHomeHero.vue @@ -66,6 +66,8 @@ useHomeHeroTintPlate( :theme="action.theme" :text="action.text" :href="action.link" + :target="action.target" + :rel="action.rel" /> diff --git a/theme/src/shared/frontmatter/home.ts b/theme/src/shared/frontmatter/home.ts index 2a1dd44b..fd6d691f 100644 --- a/theme/src/shared/frontmatter/home.ts +++ b/theme/src/shared/frontmatter/home.ts @@ -20,6 +20,8 @@ export interface PlumeThemeHeroAction { theme?: 'brand' | 'alt' text: string link?: string + target?: string + rel?: string } export interface PlumeHomeConfigBase {