Releases: gohugoio/hugo
v0.136.2
v0.136.1
v0.136.0
Note that we have much improved the Dockerfile and image this release. But this also means a slightly different way of setting it up. Improved documentation will come soon, but see 41f69a7 #12920 #12885 #12921.
Bug fixes
Improvements
- resources/page: Adjust the permalinks colon implementation a little 6e1c5b6 @bep #12918
- resources/page: Allow colons in permalinks to be escaped e7d0757 @n1xx1 #12918
- commands: Use consistent style when describing subcommands 6b5e117 @Hasaber8 #12897
- config: Imrove uglyurls section test 21366e0 @bep #12926
- create/skeletons: Honor --format flag when creating default archetype 57151a5 @jmooring #12666
- hugolib: Make .Site.Author deprecation warning clearer 5bb22b6 @jvns #12269
- ci: Build multi-platform image with cross-compilation 4a79956 @dvdksn
- tpl/tplimpl: Trim descriptions rather than just chomp 0398458 @chalin
- tailwind: Pin Tailwind 4 test to alpha 26 or later 5b0b663 @jmooring
- resources/page: Treat null dates as zero dates 3f68309 @jmooring #12906
- resources/page: Improve front matter date validation ab03588 @jmooring #12898
- commands: Add "hugo build" as an alias for "hugo" 0450d69 @bep #11391
- markup/goldmark: Change default cell alignment in table render hook 1158e63 @jmooring #12886
- tests: Address deprecation warnings and errors d1ba52f @jmooring
Dependency Updates
- build(deps): bump github.com/tetratelabs/wazero from 1.8.0 to 1.8.1 4985be1 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.20.0 to 0.21.0 db653a8 @dependabot[bot]
- build(deps): bump github.com/yuin/goldmark-emoji from 1.0.3 to 1.0.4 05bbd2c @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.23.0 to 0.26.0 9b63552 @dependabot[bot]
- build(deps): bump github.com/rogpeppe/go-internal from 1.12.0 to 1.13.1 3223a65 @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.23.1 to 0.24.0 bc6fc47 @dependabot[bot]
- build(deps): bump github.com/hairyhenderson/go-codeowners ffb41d1 @dependabot[bot]
Documentation
v0.135.0
This is a small release, the main motivation was to finally ... drum roll ... get a tagged Hugo Docker image published. Big thanks to @bmanth60 for the tip that solved this issue.
Improvements
- resources/page: Validate predefined front matter dates 4c02a52 @jmooring #10717
- tailwind: Pin Tailwind 4 test to alpha 24 da72ac2 @bep #12880
- tpl/compare: Use any data type for compare.Conditional condition 0ea796d @jmooring
Dependency Updates
- build(deps): bump golang.org/x/mod from 0.19.0 to 0.21.0 12c9ce3 @dependabot[bot]
- build(deps): bump github.com/bep/helpers from 0.4.0 to 0.5.0 47b0555 @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.28.0 to 0.29.0 e56ea40 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.19.0 to 0.20.0 578442f @dependabot[bot]
- deps: Upgrade github.com/gobuffalo/flect v1.0.2 => v1.0.3 1e690c0 @khayyamsaleem #12827
Build Setup
v0.134.3
- tpl: Remove RSS deprecation site.Author check e07028c @bep
- modules: Improve console output on hugo mod init 22a9f3f @bep #11458
- commands: Ignore "module does not exist" errors in hugo mod init e363964 @bep #11458
- Add exclusion for helix .bck files c260cb2 @David-Else #12677
- hugolib: Move hugolib/site_new.go into hugolib/site.go e079145 @bep
- libsass: Resolve directory paths to directory index files 5b442b3 @jmooring #12851
- dartsass: Resolve directory paths to directory index files 2bc2765 @jmooring #12849
- internal/warpc: Improve the JS plugin API 28f621d @bep
v0.134.2
v0.134.1
v0.134.0
Hugo v0.134.0 brings render hooks for tables, ContentWithoutSummary, scoped content render and Obsidian style callout alerts.
ContentWithoutSummary and scoped content render
This release finally brings a Page.ContentWithoutSummary
method. This has been a long sought after method where the use case is obvious: render the summary with a more button that renders the ... content without summary. To enable this we have reimplemented the content summary handling in Hugo. This consolidates the 3 summary types (auto
, manual
and frontmatter
) – they are now all HTML. This is a slightly breaking change (manual
was plain text before), but the new behaviour should be much less confusing and easier to handle in the templates. If you want plain text, pipe it into plainify
: {{ .Summary | plainify }}
.
Before this release there was one instance of .Content
for a given page, it was e.g. not possible to render a page's content slightly different (e.g. different heading levels) on the list pages or the home page. This release anables that with a new Page.Markup
with an optional scope
argument.
In the list template you would do something like this:
You can think of the custom scope list
as a cache key: Multiple invocations on the same page with the same scope will give the same return value. You can now pass down some data or configuration to in .Page.Store
to the templates that render this markup (shortcodes, render hooks), or you can use the new global hugo.Context.MarkupScope
function made for this purpose:
Render hooks for tables
This has been a long sought after feature. Now you can have full control over how you render your Markdown tables with table render hooks.
Obsidian style callout alerts
Hugo v0.133.0
added blockquote render hooks with GitHub styled alerts. We have since then gotten some feedback about extended alert syntax in Obsidian, and in Hugo v0.134.0
we now support both.
Bug fixes
- github: Try to fix "no space left on device" on MacOS 96afea4 @bep
- Fix deprecation warning for resources.ToCSS 8fb9335 @deining
- output: Fix docshelper template lookup order for AMP pages 1ecd059 @jmooring #12797
Improvements
- markup/goldmark/blockquotes: Improve some tests 504a231 @bep
- Add support for Obsidian type blockquote alerts e651d29 @bep #12805 #12801
- Rename hstring.RenderedHTML => hstring.HTML 4691248 @bep
- Make all renderhook Text methods return template.HTML 6d97ee7 @bep
- Add Markdown render hooks for tables f738669 @bep #9316 #12811
- create/skeletons: Clean up lang attribute in base template b63f24a @jmooring
- tpl/resources: Improve resources.Concat error message a3684c8 @jmooring #7428
- tpl: Trim whitespace from google_analytics.html 53a8de2 @chalin
- Add Page.Contents with scope support 3760926 @bep #8680 #12761 #12778 #716
- hugolib: Add a test for overriding _internal templates 371246d @bep
Dependency Updates
- deps: Upgrade github.com/bep/golibsass v1.1.1 => v1.2.0 2b5c335 @bep #12649
- build(deps): bump github.com/evanw/esbuild from 0.23.0 to 0.23.1 12a28ef @dependabot[bot]
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.3 4ded32d @dependabot[bot]
Documentation
- Update Dockerfile ae38158 @offgrid88
v0.133.1
v0.133.0
What's Changed
- Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder 01008ba @bep #12776
- build(deps): bump gocloud.dev from 0.38.0 to 0.39.0 53c0ddf @dependabot[bot]
- deps: Upgrade github.com/tetratelabs/wazero v1.7.4-0.20240805170331-2b12e189eeec => v1.8.0 133eeaf @bep
- Upgrade to Go 1.23 2168c5b @bep #12763