Skip to content

v0.93.0

Compare
Choose a tag to compare
@bep bep released this 28 Feb 09:33
· 1877 commits to master since this release

Markdown diagrams and code block render hooks. Now it's possible create custom templates for Markdown code blocks, either for all or just for specific programming languages. This can also be used to render diagrams from Markdown code blocks. We provide GoAT (Go ASCII Tool) natively from Hugo, but you can also add your own template to get Mermaid support. The implementation of GoAT is a Go implementation by @blampe of markdeep.mini.js' diagrams. See the diagram documentation for details.

This means that you can write diagrams as text directly into diagrams, so this:

```goat
      .               .                .               .--- 1          .-- 1     / 1
     / \              |                |           .---+            .-+         +
    /   \         .---+---.         .--+--.        |   '--- 2      |   '-- 2   / \ 2
   +     +        |       |        |       |    ---+            ---+          +
  / \   / \     .-+-.   .-+-.     .+.     .+.      |   .--- 3      |   .-- 3   \ / 3
 /   \ /   \    |   |   |   |    |   |   |   |     '---+            '-+         +
 1   2 3   4    1   2   3   4    1   2   3   4         '--- 4          '-- 4     \ 4

```

Will be rendered as:

Large Nodes

Also new in this release are:

  • The new CLI flag --printUnusedTemplates which prints templates not being invoked during the build.
  • The new method $image.Crop allows images to be cropped without being resized (thanks @johnsvenn for the implementation).

Notes

  • We have renamed some command line flags for consistency: --i18n-warnings to printI18nWarnings, --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage.
  • Finally remove deprecated Page methods 9563c7d @bep #4117

This release represents 107 contributions by 13 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @jmooring and @moorereason for their ongoing contributions. And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 7 contributions by 5 contributors. A special thanks to @jmooring, @LukeDeWaal, @andrewmjorda, and @chalin for their work on the documentation site.

Hugo now has:

Changes