Skip to content

Commit c0f73eb

Browse files
committed
Add link to heading
1 parent 84e00b6 commit c0f73eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pollen.rkt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@
3535
(string-replace (string-downcase text) " " "-"))
3636

3737
(define (heading text)
38-
`(h1 ([id ,(id-ify text)] [class ,"text-3xl font-fira-code text-[@{jordy}] tracking-tighter leading-snug"])
39-
,text))
38+
`(a ((href ,(id-ify (string-append "#" text)))
39+
(class "cursor-pointer"))
40+
(h1 ([id ,(id-ify text)] [class ,"text-3xl font-fira-code text-[@{jordy}] tracking-tighter leading-snug"])
41+
,text)))
4042

4143
(define (orga . body)
4244
`(div ([class "flex items-center gap-2 -mx-2 my-4"])

0 commit comments

Comments
 (0)