serhii.net

In the middle of the desert you can say anything you want

02 Dec 2021

211202-0008 Hugo and HTML anchors

Hugo generates anchors from headers automatically 1. Tested it - yes, except they’re lowercased and spaces get converted to - (which makes sense).

As a refresher, in HTML it’s

<h2 id="anchor">..</h2>
<a name="anchor"></a>

<a href="#anchor">anchor link </a>
Nel mezzo del deserto posso dire tutto quello che voglio.