Explore >> Select a destination


You are here

honnef.co
| | www.synesthesia.co.uk
2.4 parsecs away

Travel
| | Configuring a Hugo project so it can deploy to both Netlify and GitHub Pages
| | hjr265.me
6.4 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:
| | darcynorman.net
2.8 parsecs away

Travel
| | learning technologies, design, and other things
| | vxlabs.com
26.2 parsecs away

Travel
| The syntax-highlighted fenced code blocks in GitHub flavored markdown, or GFM, are a beautiful and useful invention. One starts a code block with three or more backticks or tildes, followed by the name of the language, and then proceeds to show one's code, which, at least on GitHub, is then syntax highlighted. In other words, something like this in your markdown: ```python def computer_says(no): print("computer says %s" % (no,)) ``` Would become this in the preview: