summaryrefslogtreecommitdiffstats
path: root/docs/layouts/_default
AgeCommit message (Collapse)Author
2023-03-01Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'Bjørn Erik Pedersen
2022-02-27CodeblockContext method renamesBjørn Erik Pedersen
Fixes #9577
2022-02-25Move the Goat template to the correct placeBjørn Erik Pedersen
Updates #7765
2022-02-24Add Markdown diagrams and render hooks for code blocksBjørn Erik Pedersen
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`). We also used this new hook to add support for diagrams in Hugo: * Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams. * Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information. Updates #7765 Closes #9538 Fixes #9553 Fixes #8520 Fixes #6702 Fixes #9558