From 3f15da9778a2072f4206f4b64087375fe516d3d0 Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Thu, 14 Aug 2025 00:00:07 +0100 Subject: [PATCH] allow heading level to be controlled for blog. exposure needed for /blog --- src/components/home/Blog.astro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/home/Blog.astro b/src/components/home/Blog.astro index c9346e2..eb18f1f 100644 --- a/src/components/home/Blog.astro +++ b/src/components/home/Blog.astro @@ -6,6 +6,12 @@ import Hr from "/assets/hr.png"; import Box2x1Mask from "/assets/box-2x1-mask.png"; const posts = await getCollection("blog"); + +interface Props { + heading?: string; +} + +const HeadingLevel = Astro.props.heading ?? "h2" ---
-

Blog Posts

+ Blog Posts { posts.map((post) => (
-- 2.51.2