From 84fa9b42acbd6e6ba54239ff8a230471d267476a Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Fri, 22 Nov 2024 13:16:07 +0100 Subject: [PATCH] Associate template name heading with article card as accessible label --- src/components/RepoCard.astro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/RepoCard.astro b/src/components/RepoCard.astro index c8453fd..bcef30e 100644 --- a/src/components/RepoCard.astro +++ b/src/components/RepoCard.astro @@ -15,17 +15,20 @@ const { createAstroTemplate, previewImage = '/previews/minimal.webp', } = Astro.props; + +const headingId = `template-${createAstroTemplate}`; ---
-

{title}

+

{title}

Source code