Releases: gohugoio/hugo
v0.126.2
Bug fixes
- content adapter: Fix server crash on partial edit 1464091 @bep #12538
- content adapter: Fix issue with content starting out with a shortcode 519f41d @bep #12544
- tpl/tplimpl: Resolve render hook destinations with leading ./ b893a09 @jmooring #12514
Improvements
- Delete .github/workflows/test-dart-sass-v1.yml 2c88e45 @bep
- commands: Add shorthand flags -M (--renderToMemory) and -N (--navigateToChanged) eaa42a8 @bep #12530
- content adapter: Add support for menus in AddPage 245928a @bep #12507
- hugolib: Allow override of sitemap file name 7f30617 @jmooring #12525
- commands: Improve list command 931e096 @jmooring #12520
- config: Remove extraneous BuildConfig setting 548dc21 @jmooring #12519
- Also warn about duplicate content paths with --printPathWarnings 6b00661 @bep #12511
v0.126.1
v0.126.0
This release brings, drum roll, a long-awaited Hugo feature that has had many names. At one point we named it pages from data. You can read all about it in the documentation where it's titled Content Adapters.
Also worth mentioning are the new Extras Goldmark Extensions, which allows you to enable Markdown syntax for inserted text, mark text, subscript and superscript. A big thanks to @bowman2001 for the implementation.
Improvements
- tpl/tplimpl: Plainify title and description in twitter_cards.html 74ab839 @jmooring #12433
- tpl/tplimpl: Plainify title and description in schema.html 92290aa @jmooring #12432
- resources/images: Handle NaN EXIF latitude and longitude 6dbbe6d @jmooring #12490
- Create pages from _content.gotmpl e2d66e3 @bep #12427 #12485 #6310 #5074
- create/skeletons: Remove superfluous language code fallback 55dea41 @jmooring #12479
- tpl/tplimpl: Improve locale value in opengraph.html 87ab7f7 @jmooring #12480
- tpl/tplimpl: Retain query string and fragment in render-image.html 6dfeb9f @jmooring #12468
- markup/goldmark: Support extras extension ca9a77e @jmooring
Dependency Updates
- build(deps): bump golang.org/x/net from 0.24.0 to 0.25.0 ee26e69 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.15.0 to 0.16.0 6e83d00 @dependabot[bot]
Documentation
Build Setup
v0.125.7
v0.125.6
What's Changed
- Fix one more resource change eviction logic issue bb59a7e @bep #12395 #12456
- Make the cache eviction logic for stale entities more robust 503d209 @bep #12458
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2 68e9532 @dependabot[bot]
- Run mage generate 9cd7db6 @bep
- resources/page: Pull internal Page methods into its own interface c892e75 @bep
v0.125.5
v0.125.4
What Changed
- Fix rebuilds when running hugo -w 7203a95 @bep #12296
- tpl/tplimpl: Fix double-escaping in opengraph template fb51b69 @jmooring #12418
- commands: Clarify that create or install a theme are two options fe84cc2 @Habbie
- config: Setups with only one active language can never be multihost babcb33 @bep #12288
- Use Apache License without modification 6b86797 @bep #12415
- build(deps): bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20 fb08439 @dependabot[bot]
v0.125.3
This release fixes a security issue reported by @ejona86 (see #12411) that could allow XSS injection from Markdown content files if one of the internal link or image render hook templates added in Hugo 0.123.0 are enabled. You typically control and trust the content files, but according to Hugo's security model, we state that "template and configuration authors (you) are trusted, but the data you send in is not."
- markup/goldmark: Fix data race in the hugocontext wrapper 509ab08 @bep
- tpl: Escape .Title in built-in image and link render hooks 15a4b9b @bep
- tpl/tplimpl: Improve embedded templates 10a8448 @jmooring #12396
- SECURITY.md: Update link to security model 722c486 @ejona86
- modules: Fix potential infinite loop in module collection f40f50e @bep #12407
v0.125.2
What's Changed
- Only add root sections to the section pages menu 06d2489 @bep #12399
- Fix partial rebuilds for SCSS fetched with GetMatch and similar Fixes #12395 004b694 @bep
- commands: Add gen chromastyles --lineNumbersTableStyle flag da6112f @jmooring #12393
- resources/images: Fix TestColorLuminance on s390x faf9fed @bep
- commands: Provide examples for chromastyles flags 11aa893 @jmooring #12387