mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add ids to headings
This commit is contained in:
parent
479cb26f39
commit
5aeb912931
1 changed files with 6 additions and 2 deletions
|
|
@ -1,9 +1,13 @@
|
|||
---
|
||||
import { makeSlug } from '~/helpers/slug.js'
|
||||
|
||||
const {
|
||||
text
|
||||
} = 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 }
|
||||
</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue