v0.145.0

gohugoio/hugov0.145.0Feb 26, 2025by bep

AI Summary

Introduces support for the Sanity CMS via the new transform.PortableText function, along with various typo fixes and a deprecation of the _build front matter key.

Key Highlights

  • New transform.PortableText function for Sanity CMS integration
  • Deprecation of _build front matter key in favor of build
  • Fixes for related content issues and httpcache config
  • Improved theme creation command

New Features

  • transform.PortableText function

Full Release Notes

The notable new feature is the new [transform.PortableText](https://gohugo.io/functions/transform/portabletext/) function that makes it possible to use the Sanity CMS with Hugo.

## Bug fixes

* all: Typo fixes 4094a1e12 @coliff 
* all: Run modernize -fix ./... 521911a57 @bep 
* readme: Fix relative links in Editions section ab9e54576 @martey 
* Fix some related content issues with content adapters 381c0da85 @bep #13443 
* Fix potential nilpointer in httpcache config 227e42926 @bep 
* Fix --printPathWarnings when site calls templates.Defer c3d435acf @bep #13420 

## Improvements

* Use the page path and not the backing filename as the last resort in the default sort c498d0fe1 @bep 
* tpl: HTTPS the instagram Shortcode JS 2f4e666d7 @coliff 
* Add transform.PortableText 04f21b4d8 @bep 
* hugolib: Deprecate _build front matter key in favor of build d0ce94219 @jmooring 

## Dependency Updates

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

## Documentation

* github: Build docker image with both extended and withdeploy tags e5eecbd9b @margau 

## Build Setup

* snap: Update Node.js to 22.x 4fd7f3233 @jmooring