feat(seo): separate display headings and improve social metadata

This commit is contained in:
DeCentN2Madness committed 2026-10-08 14:50:54 -07:00
1 parent c720917627
commit 4ed01d7d28
17 files changed
+707 -12

No files matched your search

+3 -3
View File
@@ -1,14 +1,14 @@
---
import Button from '../Button.astro';
import type { HeroSection } from '../../types/home-sections';
interface Props { section: HeroSection }
const { section } = Astro.props;
interface Props { section: HeroSection; displayH1?: string }
const { section, displayH1 } = Astro.props;
---
<section class="home-hero">
<div class="container home-hero-grid">
<div>
<p class="eyebrow">{section.eyebrow}</p>
<h1 set:html={section.heading} />
{displayH1 === undefined ? <h1 set:html={section.heading} /> : <h1>{displayH1}</h1>}
<p>{section.body}</p>
<Button href={section.cta.href}>{section.cta.label}</Button>
</div>