From c3b8de03d32a25ae1bdee079094dbf3ba79c4e8f Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 14 Aug 2023 09:12:13 -0400 Subject: [PATCH] Add tagline to Hero2 --- src/components/widgets/Hero2.astro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/widgets/Hero2.astro b/src/components/widgets/Hero2.astro index 7e49859..36f501d 100644 --- a/src/components/widgets/Hero2.astro +++ b/src/components/widgets/Hero2.astro @@ -6,6 +6,7 @@ import { CallToAction } from '~/types'; export interface Props { title?: string; subtitle?: string; + tagline?: string; content?: string; callToAction?: string | CallToAction; callToAction2?: string | CallToAction; @@ -15,6 +16,7 @@ export interface Props { const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), + tagline, content = await Astro.slots.render('content'), callToAction = await Astro.slots.render('callToAction'), callToAction2 = await Astro.slots.render('callToAction2'), @@ -28,6 +30,12 @@ const {
+ {tagline && ( +

+ )} { title && (