|
You are here |
honnef.co | ||
| | | | |
www.synesthesia.co.uk
|
|
| | | | | Configuring a Hugo project so it can deploy to both Netlify and GitHub Pages | |
| | | | |
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: | |
| | | | |
darcynorman.net
|
|
| | | | | learning technologies, design, and other things | |
| | | | |
vxlabs.com
|
|
| | | 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: | ||