chore(deps): update dependency hugo to v0.170.1 #67
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/hugo-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.168.0→0.170.1Release Notes
gohugoio/hugo (hugo)
v0.170.1Compare Source
The primary motivation for this release is a bug fix for a performance regression introduces in v0.166.0 where we improved the
returnkeyword inpartialtemplates. Note that this was not an issue if you don't use this keyword and also only an issue for bigger sites.What's Changed
e6d7bcb@bep5f34065@bep #1560493be9f1@bep #156006c6b1ee@jmooringb8765e1@bep7a15e87@jmooringv0.170.0Compare Source
The big change in this release is that the extended edition of Hugo is gone. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had.
Notes
transpilertolibsassincss.Sassnow returns an error. Dart Sass is now the default and the only transpiler, so you need to install it if you use Sass.hugo_extended_*archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g.hugo_extended_<version>_linux-amd64.tar.gz,hugo_extended_<version>_Linux-64bit.tar.gz, thelinux-amd64.deb,linux-arm64.tar.gzandwindows-amd64.zip), but you should update your scripts to use the standard archives. Theextended_withdeploybuilds are also removed. See Installation.hugo.IsExtendednow always returnsfalse, and the module config settinghugoVersion.extendedis deprecated and has no effect.--buildDrafts) now override OS environment variables (e.g.HUGO_BUILDDRAFTS). This also fixesHUGO_ENVIRONMENT=qa hugo build -e stagingloading thestagingconfig but reportingqainhugo.Environment.strings.Truncatehas been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with>and raw text elements such asscriptcorrectly, and it's faster and allocates less. On a curious note, the old version was implemented by Mathias Biilmann, the Netlify CEO.time.Timevalues now keep their named time zone, andeq,ne,inanduniqcomparetime.Timevalues by instant.resources.Matchand friends now preserve the directory casing in the matched paths, so e.g.resources.Match "gallery/Travel/Iceland/*"now works on case-sensitive file systems.encoderSpeed6 and lower, recovering from broken WASM instances in the server).Security
Hugo
markup.goldmark.renderer.unsafeis enabled. Before this, e.g.\(<img src=x onerror=alert(1)>\)in a content file emitted raw HTML.wrapperClassoption, settable from thehighlightshortcode andtransform.Highlight, is now escaped._vendordirectory (symlinks pointing outside are rejected).Thanks to @R0X4R for finding and reporting the last two issues.
Go
This release is built with Go 1.27.4, which includes 12 security fixes. The one most relevant for Hugo is a crash in the
net/httpHTTP/1 server (used byhugo server) caused by a race inMaxBytesReader. The other 11 are in thecmd/gotoolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies.Dependencies
golang.org/x/netv0.62.0 fixes two issues in thehtmlpackage: quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements forhugo_stats.jsonand in the AsciiDoc integration.github.com/go-jose/go-jose/v4v4.1.6 (indirect dependency) contains a number of security fixes, among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder.Changes
c2f9cb8@bep #154050b66ebd@bep #15502588241b@pei711a8a8e97@bep #155233c2f52d@bep #155224742565@bep #15522f3875ec@bep #15538 #15540b76fde2@bep #1549987e6e14@jmooring #15536fa5a3d4@jmooring #15518471d0fb@bepe2f66a2@raghu453453519196@jmooring #15577afb2d9a@bep #15572b755c9d@xndvaz #155672056ed6@xndvaz #15568bca2cec@bep5922421@jmooring #8895 #15565bdde5aa@bepd41a8a1@bep5b44cfc@xndvaz #7686 #10112d5ba1aa@bep #15549 #15550e6a470c@jmooring #155461a014e5@bep #155225086d5f@bep #155223a1985b@AnaTejeda1 #116012b0e1e1@jmooring #15518185a609@jmooring6b0c89c@bep #15505 #15509Dependency Updates
29bcc86@dependabot[bot]4f8354e@dependabot[bot]6aebad4@dependabot[bot]8846854@dependabot[bot]0586add@dependabot[bot]45dfa4e@dependabot[bot]d2010fc@dependabot[bot]2d6cf3a@bepb6fa2fe@bepfe34313@dependabot[bot]7ff95e0@dependabot[bot]98ab2ff@dependabot[bot]a1668da@dependabot[bot]Documentation
8502b60@jmooring #15512v0.169.0Compare Source
The main motivation behind this release is to get out a build with Go 1.27.3, which blocks trust in a small set of intermediate certificates due to specific security concerns around their operation. See the eMudhra incident for more information. This affects Hugo features that fetch remote resources over HTTPS, e.g.
resources.GetRemote.This release also contains some security hardening of the template functions and menu entries that can render content as HTML (see below), a deprecation of looking up reserved front matter fields via
.Params(also below), a faster and more robustplainify, and a set of bug fixes.Security notes
Templates are trusted in Hugo, but content (including front matter) is not necessarily. This release tightens a few places where values from content could end up rendered as unescaped HTML:
preandpostvalues in menu entries defined in front matter are now HTML escaped, unlesstext/htmlis allowed insecurity.allowContent, which already marks HTML in/contentas trusted. A warning (warning-menu-pre-post-html-escaped) is logged when a value containing HTML markup is escaped. Menu entries defined in the project configuration are not affected.f63482bemojifyandplainifynow return astringunless the input istemplate.HTML, in which case the result is alsotemplate.HTML. Previously both always returnedtemplate.HTML, so e.g.{{ .Title | emojify }}would mark a potentially unsafe title as safe HTML. If you relied on the old behavior with trusted input, pipe the result throughsafeHTML. Thanks to @Reload3d for reporting this. #15452Deprecations
Reserved front matter fields such as
title,dateandsummaryare currently also stored in.Params. Lookups such as.Params.title(andByParam "title",where .Pages "Params.title" ...etc.) are now redirected to the correspondingPagemethod and logged as deprecated, unless the field was set in theparamssection of front matter. The content of.Paramsis unchanged for now.53e1fef.Params.date.Date.Params.description.Description.Params.draft.Draft.Params.expirydate.ExpiryDate.Params.keywords.Keywords.Params.lastmod.Lastmod.Params.layout.Layout.Params.linktitle.LinkTitle.Params.publishdate.PublishDate.Params.slug.Slug.Params.summary.RawSummary(new).Params.title.Title.Params.translationkey.TranslationKey.Params.type.Type.Params.weight.WeightBug fixes
46e51f3@bep #15484c22158c@chanellebingham #15472ce5d232@Ferdinand-MZ #154732efee51@bep #15481b86e0ca@bep #1546677230eb@bep85fb23f@bep #154498df3180@jmooring #15444Improvements
53e1fef@bep3e67572@bepf63482b@bep7343fc9@bepff4eab7@bep #154677ec3a36@bep #15462895f583@bep #1545287bf585@bep #154529d50291@bep #15453683a877@bepDependency Updates
6e494d0@dependabot[bot]8c1fdca@dependabot[bot]ed22b85@dependabot[bot]4102d1a@dependabot[bot]ac5af66@dependabot[bot]Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
c6e2f928b67e8f85322echore(deps): update dependency hugo to v0.169.0to chore(deps): update dependency hugo to v0.170.07e8f85322ed43a9387ccchore(deps): update dependency hugo to v0.170.0to chore(deps): update dependency hugo to v0.170.1View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.