Add ids to headings

This commit is contained in:
Sam Carlton 2022-04-29 12:54:17 -05:00
parent 479cb26f39
commit 5aeb912931

View file

@ -1,9 +1,13 @@
--- ---
import { makeSlug } from '~/helpers/slug.js'
const { const {
text text
} = Astro.props } = Astro.props
--- ---
<h2 class="section-heading text-xl md:text-2xl text-center font-bold mb-3"> <h2
id={ makeSlug( text ) }
class="section-heading text-xl md:text-2xl text-center font-bold mb-3"
>
{ text } { text }
</h2> </h2>