Explore >> Select a destination


You are here

sam.hooke.me
| | discourse.gohugo.io
2.9 parsecs away

Travel
| | Earlier today I stumbled upon this page (the site is generated by Gatsby) and I envied the elegant way that anchor links are generated for each paragraph. How would you go about doing something similar in Hugo? Markdow...
| | pavelkorolev.xyz
2.5 parsecs away

Travel
| | One of the most popular things you can see on almost all blogs is anchors. Anchors are the icon or text link to something in the post. Header links are by far the most popular use case for anchors. I've implemented this feature for the blog and want to share knowledge. It's a pretty easy thing to do with a combination of out-of-box Hugo features, but haven't seen this combination described anywhere.
| | hjr265.me
2.1 parsecs away

Travel
| | 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 the render hook for headings, I am able to show a small link icon next to the headings in my blog posts:
| | burgeonlab.com
28.3 parsecs away

Travel
| Explore my blogging journey with Hugo and WordPress CMS. Learn about webrings, IndieWeb, and why I'm making BurgeonLab my primary blog.