chore(deps): update dependency hugo to v0.166.0 - #43
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
3 times, most recently
from
August 10, 2025 15:08
4032bd0 to
b9c543f
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
August 13, 2025 03:46
b9c543f to
4e3909a
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
August 27, 2025 19:09
4e3909a to
fdc3c6a
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
September 19, 2025 16:09
fdc3c6a to
1c76320
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
September 25, 2025 13:07
1c76320 to
6ff22cd
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
October 2, 2025 14:23
6ff22cd to
8b09200
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
2 times, most recently
from
October 14, 2025 01:57
f72f0d4 to
69a998a
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
October 15, 2025 16:59
69a998a to
3cc980e
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
2 times, most recently
from
October 21, 2025 22:55
9b14711 to
87ed78c
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
3 times, most recently
from
October 24, 2025 17:53
05902c0 to
ed127b2
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
November 5, 2025 23:06
ed127b2 to
40b41ce
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
December 2, 2025 18:52
40b41ce to
7d70a37
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
December 19, 2025 13:53
7d70a37 to
9319f63
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
December 20, 2025 17:02
9319f63 to
aaf15ca
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 1, 2026 20:38
b9d73fa to
7452feb
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 2, 2026 20:34
7452feb to
40fea16
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 6, 2026 17:42
40fea16 to
3842dc8
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 10, 2026 17:11
3842dc8 to
c2876cd
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 11, 2026 21:28
c2876cd to
c110283
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
2 times, most recently
from
January 21, 2026 13:57
669abdd to
f55112d
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 28, 2026 17:52
f55112d to
ec3e1ab
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
January 30, 2026 13:50
ec3e1ab to
bc24c92
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
February 2, 2026 13:34
bc24c92 to
ff51e45
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
3 times, most recently
from
February 8, 2026 21:27
e357c04 to
7cd254e
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
February 10, 2026 20:34
7cd254e to
a1a48c0
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
February 18, 2026 18:05
a1a48c0 to
06f135f
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
February 25, 2026 19:42
06f135f to
457312b
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
March 6, 2026 02:02
457312b to
fba04d9
Compare
renovate
Bot
force-pushed
the
renovate/hugo-0.x
branch
from
March 16, 2026 21:21
fba04d9 to
8a03c91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.148.1→0.166.0Release Notes
gohugoio/hugo (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]v0.165.0Compare Source
The two main new things is the new
css.ChromaStylestemplate func and the newimportContextoption demonstrated below.The
importContextis relevant forcss.Build,js.Build,css.Sass, andcss.PostCSS. and it allows you to make resources (e.g. built fromresources.FromString) resolvable in e.g. CSS@importstatements.Note
8a55df7@bep #15178 #15171Bug fixes
f772998@bep #151892ffaf1f@bepa808f6e@bep #151746bf1524@bep #15130f961093@jmooring #15121984358f@jmooring #15114Improvements
995a215@bep #15189 #15189f88f0a9@bep #1516952c9bd7@bep44da086@bep #1517333d1f2c@bep #1516764da6d7@bep #1516170db201@bep #151038a468df@bep615e45d@bep #15112a243a61@Soundcreates7d90277@bep861ede6@bep #15101f228c87@bep7df45f6@bep89b8c32@jmooring #15116Dependency Updates
0bb337b@dependabot[bot]03dc917@dependabot[bot]c829b73@dependabot[bot]94f3908@dependabot[bot]75fcc75@dependabot[bot]b5fa03d@dependabot[bot]9da472d@dependabot[bot]635532a@dependabot[bot]9c71f60@dependabot[bot]420527f@dependabot[bot]7fe786e@dependabot[bot]03b244f@dependabot[bot]9611813@dependabot[bot]e35b7f0@dependabot[bot]0796fa7@dependabot[bot]1b701b7@dependabot[bot]a32d70b@dependabot[bot]948cfb9@dependabot[bot]8930802@dependabot[bot]Documentation
dd3f273@bep #15190d1f191c@jmooringv0.164.0Compare Source
Notable new features in this release are:
Notes
29ed932@bep #15086Changes
5a5f4a5@bepd83ce27@bep #15056c6acc24@bep #534929ed932@bep #15086671897a@bejaratommy #11794499794d@sjh9714 #1507865c8217@bepdfb35dc@bep #15072a5ec542@bep #15068 #15060e46d37a@jmooring #15057fe06735@jmooring #15052128fb17@jmooring #15062Dependency Updates
921db7b@dependabot[bot]786ce71@dependabot[bot]5ad2846@dependabot[bot]36ad9f5@dependabot[bot]7c0a0bc@dependabot[bot]a879ebf@dependabot[bot]332d5ec@dependabot[bot]212cc11@dependabot[bot]884439b@bep #15033790a8aa@bep #15017v0.163.3Compare Source
What's Changed
ce1a7e0@bep thanks to @k0ngj1 for reporting this issue.70a9068@bep9d66d51@jmooring #15039 #15040 #15043f013346@jmooring #15046v0.163.2Compare Source
What's Changed
134674f@bep #15041147f605@jmooring #14222v0.163.1Compare Source
The majority of the fixes in this release are security related (including the upstream fix in
93c8c7d(golang.org/x/image)). Thanks to @vnth4nhnt for finding the issues fixed ina00b5c7andcf9c8f9(I will do the CVE work on this later). There has been a uptick in security reports lately, which doesn't mean that Hugo has gotten less secure, this is mostly the work of the new and powerful AI tools using Hugo's restrictive security model as their baseline. Just take a look at Go's recent security issue list to see a demonstration of this.What's Changed
93c8c7d@dependabot[bot]95e5e9f@bep #15024a00b5c7@bepcf9c8f9@bep #150192602796@jmooring #15012v0.163.0Compare Source
The main topic in this release is improvements to the AVIF image handling that we introduced in
v0.162.0. See the docs for details, but:qualityfor AVIF to 60. Turns out, JPEG/WebP with quality 75 is comparable to AVIF with quality 60. You can now also set quality per image format in your project config (and also per image processed if needed).hintto the AVIF with the same values as forWEBP. Forlossycompression, the photo/picture hints (and the default) encodes with YUV420 chroma subsampling instead of YUV444, keeping 444 for text/icon/drawing. This greatly reduces the memory needed to encode these images.Improvements
ff2903a@bep #14991 #14996ca68936@jmooring781fabf@bep1d018ef@anupamojha-eng #14999121bc6c@bepcf18b82@bep #1499898ad9b3@bep #14997b89e7fe@bep #11574e8fefc8@bep #14990a043d3e@bep #14992341f575@bep #14987248241b@bep #149814e47d95@bep #1497903b4b54@bep #1497979be053@bep #149830f44046@bep #149774e17421@bep #14985b01ecd4@bep #1495745c00b7@jmooring #14936 #14950 #1496528d882a@bepDependency Updates
0d29fc8@dependabot[bot]bb57404@dependabot[bot]7d1b1fb@dependabot[bot]77a1147@dependabot[bot]v0.162.1Compare Source
What's Changed
59f35cd@jmooring #14959c270975@bep #14958ea8b48a@jmooring #14948v0.162.0Compare Source
The notable new feature in this release is support for AVIF images (both encoder and decoder). There's a demo site set up that demonstrates the difference between HDR AVIF and SDR JPEG images. Note that that demo is only really interesting if viewed on an HDR capable screen (e.g. Apple Retina).
Security fixes
There are some notable security fixes in this release.
Security fixes in Go
This release upgrades from Go 1.26.1 to 126.3, which brings a set of security fixes. Some relevant for Hugo are:
Security fixes and hardening in Hugo
The following changes either fix a concrete issue or reduce the default attack surface of
hugobuilds.text/htmlcontent files by default (e41a064). A newsecurity.allowContentpolicy gates which content media types may be used for pages under/content.text/htmlis denied by default; sites that rely on hand-authored or adapter-emitted HTML content can opt back in withsecurity.allowContent = ['.*'].security.http.urlson every redirect hop inresources.GetRemote(86fbb0f).resources.Get(f8b5fa0).We will update this section later with links to CVEs where applicable.
All changes
df54219@bep #149424bc7cae@bep5d51b82@jmooring #1492181d7762@jmooring #14795 #14906f8b5fa0@bep88d838a@xndvaz #14831e41a064@bep90d9f81@bep #783780e6084@jmooring #14944aeb9a5c@bep #14939c4bbc28@bepd8c7021@jmooring #14932ee4f1ac@bep #14855b613365@bep #11872d2c821b@bep4ed7600@bepcbe4339@bep #149126475d30@bep #14912 #1491767aede4@bep87f194b@bep #14897d81e3c2@bep #148977c65a4d@bepd31a927@bepc36608c@jmooring #149092f361a8@xndvaz #148865559263@jmooring #13869656fc04@bep #14062a20cb5b@bep #148984d775cb@bep #13492ae7bf74@bep #13987ba5d812@bep #12899 [#14882](httpsConfiguration
📅 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 was generated by Mend Renovate. View the repository job log.