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]