chore(deps): update ghcr.io/gohugoio/hugo docker tag to v0.166.0 #8
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/ghcr.io-gohugoio-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:
v0.165.0→v0.166.0Release Notes
gohugoio/hugo (ghcr.io/gohugoio/hugo)
v0.166.0Compare Source
This release is mostly about hardening and bug fixes, but there are some notable changes:
.Rendernow takes an optional context argument:{{ .Render "view" $ctx }}, mirroring thepartialAPI. This makes it possible to pass e.g. a dict to a content view. See #15077.returnkeyword in templates has been reimplemented. It now works in any template (not just partials) and can be used anywhere, e.g. insideiforrangeblocks. See #15212.resources.Publishtemplate function andIndexOfmethod onPages.relatedconfig: newtokenizeoption for index values, and index creation is faster.Note
8d88b8b@bep #15267d19e0a4@bep #12536 #12543 #15266ec52e63@bep #15254c05c012@bepe6abb9c@bep6a2a955@bep #15301 #15302efd2456@bep #15273938c820@bep8405b80@bep #1521239507d5@ipince #4092 #3577 #5571 #4090Glob patterns
The glob library used for e.g. module mounts (
includeFiles,excludeFiles),cascadetargets,segments,deploymentmatchers andnoVendorhas been upgraded to v1.0.0. This is a complete rewrite of the matching engine that fixes a long list of correctness bugs, but it also means that some patterns may behave differently:{, an empty[]class) now fail with a syntax error instead of being silently accepted.**matches any sequence of characters including separators, but it is not the**/"globstar" of shells:**/xrequires the literal/and does not matchx, anda/**/bdoes not matcha/b. Use{**/,}xif you need both.\is the escape character, so a literal backslash must be written as\\.If a pattern that used to match no longer does (or vice versa), it was most likely relying on a bug in the old engine.
Security
text/orgcontent is now denied by default, as Org mode's export blocks and@@html:...@@snippets pass raw HTML through unescaped, making it the same XSS sink astext/html. Sites with Org content can opt back in viasecurity.allowContent.resources.GetRemoteetc.) now validate the resolved address at dial time and reject loopback, private, link-local, CGNAT and similar ranges. This only applies under the defaultsecurity.http.urlsallowlist; if you have customized it, you have opted into your own hosts and the check stands down. Proxies fromHTTP_PROXY/HTTPS_PROXYhide the destination address from this check and are now ignored unless you setsecurity.http.proxyFromEnvironment = true.security.node.permissions.allowRead.themes/mytheme/assets -> /somewhere/else) are now dropped. This closes a gap in thethemes/confinement; absolute mountsourcevalues are still allowed.Other
{{ return <value> }}outside a partial is now an error; it was previously silently ignored.slugwhose title contains a/(e.g.Watch/listen to this) now gets a single URL segment (.../watch-listen-to-this/) instead of a nested one (.../watch/listen-to-this/). Taxonomy and term pages are not affected.KaTeX
When upgrading to Hugo v0.166.0, sites using
transform.ToMathwith theoutputoption set tohtmlorhtmlAndMathmlmust update the KaTeX stylesheet referenced in their template(s) to version 0.18.4 or higher. Using older CSS versions like 0.16.21 will cause certain mathematical or chemical expressions to render incorrectly.Example update:
See these examples:
Bug fixes
ae07063@youdie0065130d00@youdie0067785668@bep #12536 #12543efe5cbc@jmooring #152617b5199f@bep87260e4@jmooring #1522349dceb1@bep #152075e70992@jmooring #15206Improvements
857120b@bep #15307938c820@bep3b2d3b8@bep9c2527f@bepa36bd27@bep24d5e42@bep9e7c978@bep #125436b5b7d8@bep #1254362e24b7@bep #12536 #12543f61346e@bep850f11c@jmooring #7515 #1519939507d5@ipince #4092 #3577 #5571 #409090fe506@jmooring #1525349835f8@Soundcreates #15234d6e6f9e@bep #15247e4dc48c@bep #15247bcde806@bep #15077df4ac34@bep #15245166d3ee@Soundcreates #15237a25af7f@Shiwang0-0 #15027723579f@bep85ad5e4@bepe31ff54@bep #152288405b80@bep #15212bf05832@Shiwang0-0 #13589a05736c@bep #15208423e9ce@jmooring #15271 #15280Dependency Updates
3fbfd27@dependabot[bot]393de58@dependabot[bot]870f746@dependabot[bot]6152e22@dependabot[bot]5b6e7c2@dependabot[bot]dc03bb2@dependabot[bot]701dd33@dependabot[bot]b4062c8@dependabot[bot]cdd1627@dependabot[bot]efd2456@bep #15273d462968@dependabot[bot]fd5f7c6@dependabot[bot]6b33517@dependabot[bot]5f0d88b@dependabot[bot]9171dae@dependabot[bot]d1ee825@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.
857c79da12toad92d44611