UNCLASSIFIED - NO CUI

Skip to content

Update dependency gohugoio/hugo to v0.99.0

renovate requested to merge renovate/gohugoio-hugo-0.x into development

This MR contains the following updates:

Package Type Update Change
gohugoio/hugo ironbank-github minor v0.98.0 -> v0.99.0
gohugoio/hugo minor v0.98.0 -> v0.99.0

Release Notes

gohugoio/hugo

v0.99.0

Compare Source

The theme of this release is error handling – a topic grievously underrated in most development tools. You are often expected to Google this mysterious error and end up in some Stackoverflow thread telling you to use a specific Node version. Hugo has done an OK job in this department, but when I, @​bep, recently got stuck with a minify error I had no clue how to debug, I knew we had to take another look at this. There is a list of "error improvements below", but here is one visual example:

image

The two screenshots above is from the same template error in Hugo v0.98.0 (left) and the new v0.99.0 (right). This is a type error (method not found) in a partial included in a shortcode template. We did a decent job in v0.98.0, too, pointing at correct line in the partial. But the right version has the full stack, with absolute filename, line and column and some file context (highlighted lines) for all of the files involved in the error (Markdown file, shortcode and partial). Having these source file references to click on in the VS Code terminal is a real time saver, especially in Hugo projects with mulitiple file roots (themes, theme components).

A list of the most important "error improvements":

  • A new server error template (can be overridden in layouts/_server/error.html), always add the content file context if relevant, improve JS errors, Add file context (with position) to codeblock render blocks, add file context to errors in the publishing step (e.g. minify), and more. #​9892 #​9891 #​9893
  • Fix SIGINT handling (allowing to kill the server) after loading bad configuration #​9664
  • Improve SASS/SCSS errors (both Dart SASS and Libsass) #​9897
  • Fix line numbers in errors from PostCSS, add missing file context to "import not found" #​9895

Also worth mentioning is the new clock cli flag (#​8787 ) which allows you to "set the clock" and see how your site looks like ... in the future.

This release represents 24 contributions by 4 contributors to the main Hugo code base.@​bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @​dependabot[bot], @​satotake, and @​nathannaveen for their ongoing contributions.

Many have also been busy writing and fixing the documentation in hugoDocs, which has received 3 contributions by 2 contributors.

Hugo now has:

Notes
Changes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about these updates again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports