Adding Anchor Links Next to Headings in Hugo

from blog Blog on hjr265.me, | ↗ original
I like that the Markdown renderer in Hugo automatically adds an id attribute to the headings in the content. This allows you to link to a specific section in a long article. But, I wanted to make it easy for people to get that link. Hugo doesn’t do that by default, but makes it very easy to do with Markdown render hooks. By using the following as...