github gohugoio/hugo v0.93.0

latest releases: v0.126.2, v0.126.1, v0.126.0...
2 years ago

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

Don't miss a new hugo release

NewReleases is sending notifications on new releases.