Releases: gohugoio/hugo
v0.147.3
Mostly bug fixes here, but also a new template func to get a really big number. You can read about why that is useful in the documentation.
- tpl/tplimpl: Change calls to simple versions of embedded shortcodes 8142699 @jmooring #13700
- config: Fix env override of slices bc98e7a @bep #13707
- Fix/implement cascade for content adapters c745a3e @bep #13692
- commands: Fix description of new theme commands 9d1d8c8 @jmooring #13701
- tpl/tplimpl: Fix vimeo shortcode test to accommodate API changes 84d7a10 @jmooring #13687
- tpl/math: Add MaxInt64 function 325a0db @jmooring #13693
v0.147.2
v0.147.1
Bug fixes
- tpl: Fix overlapping layout sections be93d52 @bep #13672
- Fix it so the owning taxonomy gets rerendered in server when new tags are added a1cb15e @bep #13648
Improvements
- tpl: Add some more test cases 5fec782 @bep #13672 #13668
- commands/server: Display correct multihost language in console 673a4d0 @jmooring #12564
- hugolib: Use new build key in content placeholder 31db7ed @jmooring #13655
Dependency Updates
- build(deps): bump github.com/alecthomas/chroma/v2 from 2.17.0 to 2.17.2 620fc87 @dependabot[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0 8b2124e @dependabot[bot]
- build(deps): bump github.com/yuin/goldmark from 1.7.10 to 1.7.11 927d1ec @dependabot[bot]
v0.147.0
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
- tpl: Fix it so we always prefer internal codeblock rendering over render-codeblock-foo.html and similar 07983e0 @bep #13651
- tpl/tplimpl: Fix allowFullScreen option in Vimeo and YouTube shortcodes 5c49140 @jmooring #13650
- config: Fix _merge issue when key doesn't exist on the left side 179aea1 @bep #13643 #13646
- all: Fix typos 6a0e042 @coliff
Improvements
- create/skeletons: Adjust template names in theme skeleton 75b219d @jmooring
- tpl: Remove some unreached code branches ad4f63c @bep
- images: Add some test cases for aligny on images.Text 5320231 @bep #13414
- images: Add option for vertical alignment to images.Text 2fce0ba @pranshugaba
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
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
- parser/metadecoders: Add CSV targetType (map or slice) option to transform.Unmarshal db72a1f @jmooring #8859
- tpl: Detect and fail on infinite template recursion 1408c15 @bep #13627
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
v0.146.5
v0.146.4
What's Changed
- tpl: Fix issue with partials without suffix 65c94c7 @bep #13601
- tpl: Avoid panic on nonsensical return construct e8e8ce1 @bep #13600
- tpl: Fix the case for a shortcode in a nested folder only cf9e690 @bep #13605
- tpl: Add proper file context to template parse errors 8a2830f @bep #13604
- tpl: Make {{ template "partials/foo.html" . }} work in older setups 1e0287f @bep #13599