/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.duncanmackenzie.net
| | hjr265.me

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:
4.6 parsecs

Travel
| |
| | conductofcode.io

Modern web development architecture:
4.5 parsecs

Travel
| |
| | saeedesmaili.com

I've been using GatsbyJS for publishing my blog posts here, but I wanted to move to another static site generator that is more automation friendly (more on this later). That's why I decided to migrate this blog to Hugo , which has a very active community and is developed with Go. At first, I was scared of this move, since I don't know how to code in Go, but to my surprise the whole migration process didn't require me to write any Go, and everything is handled via yaml, html, and jinja.
4.2 parsecs

Travel
| |
| | jkc.codes

Eleventy (11ty) is a super customisable static site generator that at its core transforms template language into HTML. However, template languages li...
11.9 parsecs

Travel
|