Skip to content

Releases: gohugoio/hugo

v0.147.0

25 Apr 17:17
@bep bep
Compare
Choose a tag to compare

This release comes with a new aligny option (shoutout to @pranshugaba for the implementation) for images.Text that, in combination with alignx makes it simple to e.g. center the text on top of image in both axis. But the main reason this release comes now and not later, is the improvements/fixes to the order Hugo applies the default configuration to some keys. This is inherited from how we did this before we rewrote the configuration handling, and it made the merging of configuration from modules/themes into the config root harder and less flexible than it had to be. Me, @bep, looking into this, was triggered by this forum topic. Having many sites share a common configuration is very useful. With this release, you can simply get what the thread starter asks for by doing something à la:

baseURL = "http://example.org"
title = "My Hugo Site"

# ... import any themes/modules.

# This will merge in all config imported from imported modules. 
_merge = "deep"

See the documentation for details.

Bug fixes

Improvements

Dependency Updates

  • build(deps): bump github.com/evanw/esbuild from 0.25.2 to 0.25.3 1bd7ac7 @dependabot[bot]
  • build(deps): bump github.com/alecthomas/chroma/v2 from 2.16.0 to 2.17.0 41cb880 @dependabot[bot]

v0.146.7

22 Apr 17:48
@bep bep
Compare
Choose a tag to compare

Bug fixes

  • Revert the breaking change from 0.146.0 with dots in content filenames 4967308 @bep #13632
  • tpl: Fix indeterminate template lookup with templates with and without lang 6d69dc8 @bep #13636
  • tpl/collections: Fix where ... not in with empty slice 4eb0e42 @bep #13621
  • tpl: Fix layout fall back logic when layout is set in front matter but not found 5e62cc6 @bep #13630

Improvements

Dependency Updates

  • build(deps): bump github.com/yuin/goldmark-emoji from 1.0.5 to 1.0.6 ad78761 @dependabot[bot]
  • build(deps): bump github.com/bep/imagemeta from 0.11.0 to 0.12.0 9c65b9e @dependabot[bot]
  • build(deps): bump github.com/yuin/goldmark from 1.7.9 to 1.7.10 be3b147 @dependabot[bot]

v0.146.6

20 Apr 11:33
@bep bep
Compare
Choose a tag to compare

What's Changed

  • tpl: Fix when layout specified in front matter and no match is found 088cd2f @bep #13628

v0.146.5

15 Apr 18:23
@bep bep
Compare
Choose a tag to compare

What's Changed

v0.146.4

14 Apr 13:26
@bep bep
Compare
Choose a tag to compare

What's Changed

v0.146.3

12 Apr 17:38
@bep bep
Compare
Choose a tag to compare

What's Changed

  • tpl: Make any layout set in front matter higher priority 30b9c19 @bep #13588
  • tpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock exists c871062 @bep #13595

v0.146.2

11 Apr 17:40
@bep bep
Compare
Choose a tag to compare

What's Changed

v0.146.1

10 Apr 16:59
@bep bep
Compare
Choose a tag to compare

This fixes a regression introduced in v0.146.0 released earlier today.

v0.146.0

10 Apr 15:14
@bep bep
Compare
Choose a tag to compare

Note

There's a v0.146.1 bug fix release that fixes a regression introduced in this release.

The big new thing in this release is a fully refreshed template system – simpler and much better. We're working on the updated documentation for this, but see this issue for some more information. We have gone to great lengths to make this as backwards compatible as possible, but make sure you test your site before going live with this new version. This version also comes with a full dependency refresh and some useful new template funcs:

  • templates.Current: Info about the current executing template and its call stack. Very useful for debugging.
  • time.In: Returns the given date/time as represented in the specified IANA time zone.

Bug fixes

Improvements

Dependency Updates

Documentation

  • commands/gen: Set url in command pages to /docs/reference/commands/ a98ec3b @jmooring

v0.145.0

26 Feb 16:00
@bep bep
Compare
Choose a tag to compare

The notable new feature is the new transform.PortableText function that makes it possible to use the Sanity CMS with Hugo.

Bug fixes

Improvements

  • Use the page path and not the backing filename as the last resort in the default sort c498d0f @bep
  • tpl: HTTPS the instagram Shortcode JS 2f4e666 @coliff
  • Add transform.PortableText 04f21b4 @bep
  • hugolib: Deprecate _build front matter key in favor of build d0ce942 @jmooring

Dependency Updates

  • deps: Upgrade github.com/rogpeppe/go-internal v1.13.1 => v1.14.1 6927e6f @bep #13449
  • build(deps): bump github.com/yuin/goldmark-emoji from 1.0.4 to 1.0.5 b7ae24b @dependabot[bot]
  • build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 1a4851f @dependabot[bot]
  • build(deps): bump github.com/tetratelabs/wazero from 1.8.2 to 1.9.0 d1f2330 @dependabot[bot]

Documentation

  • github: Build docker image with both extended and withdeploy tags e5eecbd @margau

Build Setup