bowbahdoe / caveman

Clojure Web Framework
https://caveman.mccue.dev
12 stars 8 forks source link

Make headers anchors #7

Closed bowbahdoe closed 3 weeks ago

bowbahdoe commented 3 weeks ago

For all the <h2>s in the thing it will be helpful to make them clickable anchors.

Just gonna take an hour to sit down and wrap them all in sections + <a href="#learn-clojure" style="color: inherit; text-decoration: inherit;">

Done for https://caveman.mccue.dev/tutorial/clojure/0_prerequisites as a proof of concept

souenzzo commented 3 weeks ago

Nice to know:

We can point/highlight any text with fragment from the URL with text selectors

https://developer.mozilla.org/en-US/docs/Web/URI/Fragment/Text_fragments#:~:text=example.com

bowbahdoe commented 3 weeks ago

Done