]>
git.maquefel.me Git - brevno-suite/hugo/log
Bjørn Erik Pedersen [Wed, 1 Apr 2026 11:54:10 +0000 (13:54 +0200)]
Fix potential content XSS by escaping dangerous URLs in links and images
* This issue in question was fixed upstream in https://github.com/yuin/goldmark/releases/tag/v1.8.2
* We do, however, have a copy of the affected functions, used as fallbacks when no render hook are defined for e.g. links and images, so we need to port these fixes to our copy of the affected functions.
Bjørn Erik Pedersen [Tue, 31 Mar 2026 16:06:04 +0000 (18:06 +0200)]
releaser: Add standard withdeploy release assets
Closes #14687
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Joe Mooring [Sat, 28 Mar 2026 17:21:06 +0000 (10:21 -0700)]
resources/page: Fix shared reader in Source.ValueAsOpenReadSeekCloser
Closes #14684
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Bjørn Erik Pedersen [Sat, 28 Mar 2026 11:44:20 +0000 (12:44 +0100)]
testing: Simplify line ending handling in tests
Joe Mooring [Fri, 27 Mar 2026 15:43:24 +0000 (08:43 -0700)]
readme: Update Go version to 1.25.0
hugoreleaser [Thu, 26 Mar 2026 10:13:11 +0000 (10:13 +0000)]
releaser: Prepare repository for 0.160.0-DEV
[ci skip]
hugoreleaser [Thu, 26 Mar 2026 09:54:15 +0000 (09:54 +0000)]
releaser: Bump versions for release of 0.159.1
[ci skip]
Bjørn Erik Pedersen [Wed, 25 Mar 2026 18:17:11 +0000 (19:17 +0100)]
minifiers: Keep x-bind and blank namespace in SVG minification
Update tdewolff/minify to v2.24.11 and add "" and "x-bind" to KeepNamespaces
to prevent Alpine.js directives from being stripped in SVGs.
This is a new option in tdewolff/minify v2.24.11, and it is needed to prevent breakage of Alpine.js, and possilby others, directives in SVGs.
Fixes #14669
Bjørn Erik Pedersen [Tue, 24 Mar 2026 10:07:01 +0000 (11:07 +0100)]
Adjust depreceated syntax in tests
hugoreleaser [Mon, 23 Mar 2026 18:34:59 +0000 (18:34 +0000)]
releaser: Prepare repository for 0.160.0-DEV
[ci skip]
hugoreleaser [Mon, 23 Mar 2026 18:16:59 +0000 (18:16 +0000)]
releaser: Bump versions for release of 0.159.0
[ci skip]
Bjørn Erik Pedersen [Mon, 23 Mar 2026 17:27:14 +0000 (18:27 +0100)]
docs: Update docs.yaml
Bjørn Erik Pedersen [Mon, 23 Mar 2026 17:25:55 +0000 (18:25 +0100)]
Bjørn Erik Pedersen [Mon, 23 Mar 2026 17:21:25 +0000 (18:21 +0100)]
Squashed 'docs/' changes from
80dd7b067 ..
0755fb534
0755fb534 misc: Update docs.yaml
f0c69a38c content: Remove outdated content
43ce895b9 content: Remove outdated new-in badges
c3a382fb7 content: Improve GitLab Pages workflow example
f2a851966 content: Update Vimeo example
044565ab3 content: Fix typo
9f5e8b5f4 content: Update version references
9dc30f225 theme: Address deprecations in v0.158.0
ea0787a6b content: Document css.Build function
f98e4f55c content: Standardize Node.js references
bf683e36f content: Use consistent file system terminology
54ed4c12b content: Document strings.ReplacePairs
779d37978 all: Miscellaneous updates for v0.158.0
be1a20c27 Update HUGO_VERSION to 0.158.0
24cdd7bf7 Fix typos in module configuration documentation
ce37e7b05 content: Address Markdown linting error
592049f02 content: Remove unnecessary workflow customization section
b17b18ce1 content: Update version references in hosting guides
32ec89596 content: Improve urls.PathEscape/PathUnescape examples
9297bb6fa content: Clarify page collection sort order
60192a16f content: Add reference link to glossary term
63d4a992a content: Update documentation contribution guide
946273d67 theme: Adjust feature state notices
d70dfd651 theme: Simplify border classes per Tailwind linter
fc53c7263 theme: Refactor feature status shortcodes
850dc5b2b content: Clean up content for deprecated features
35da1aa3c content: Miscellaneous udpates for v0.157.0
05b69f84e content: More site-to-project changes
291ffc3f6 content: Add blogger2hugo migration tool
53a1bdee3 Update HUGO_VERSION to 0.157.0
808f0431d Merge branch 'tempv0.157.0'
f02222e46 docs: Regen and fix the imaging docshelper output
b0d3364f1 Merge commit '
0c2fa2460f485e0eca564dcccf36d34538374922 '
d1f37cc6d resources/images: Adjust WebP processing defaults
9a9f02fb8 Add per-request timeout option to `resources.GetRemote`
900c10201 docs: Fix lineNos default value in docs.yaml
0052c975a docs: Regenerate docs.yaml
3e2f98235 Merge commit '
8f3c066d23f431fb2c53d97ea489e4c28b42bd82 '
dbfd34a1a docs: Update docs.yaml
7e1a08e54 Merge commit '
08e1ea5c709d3d49bdc3ce3c21e8fa05a33150d0 '
cb6e0a42a tpl: Add missing functions to init files
05544e400 markup/asciidocext: Improve Asciidoctor integration
820b5536a github: Add ai-watchdog workflow and update other workflows' versions
3848aec5f markup/goldmark: Enhance footnote extension with backlinkHTML option
070074dac markup/goldmark: Enhance footnote extension with auto-prefixing option
f92f7ac5c config/security: Add PROGRAMDATA to the osenv allowlist
d1ab84530 minifiers: Update deprecation handling
6c911d1e5 Merge commit '
bfa74537929f409fca841540b971125b7678963a '
61916ab4c resources/page: Add :sectionslug and :sectionslugs permalink tokens
80667667c Add Ancestors (plural) method to GitInfo, rename Ancestor field to Parent
e8fdc1d4d source: Expose Ancestor in GitInfo
079671b41 Merge commit '
bb147f91ee9078e6a55e8c32ab4b2e5dbc5cee45 '
9e8a08520 images: Add option for vertical alignment to images.Text
f7c795479 Merge commit '
b3d87dd0fd746f07f9afa6e6a2969aea41da6a38 '
283e97783 Merge commit '
5be51ac3db225d5df501ed1fa1499c41d97dbf65 '
4c6ec5c19 resources/page: Revise the new contentbasename permalinks tokens
fc69d3981 resources/page: Add :contentbasename and :contentbasenameorslug permalink tokens
c5f654716 modules: Add GOAUTH to module config
2a1a832fb js/esbuild: Add drop option
d9fb55352 Merge commit '
a024bc7d76fcc5e49e8210f9b0896db9ef21861a '
84678f5af helpers: Add Chroma styles to docs.yaml
fc8d9e344 Merge commit '
346b60358dd8ec2ca228e6635bff9d7914b398b7 '
4e4da5e47 Merge commit '
81a7b6390036138356773c87a886679c81c524e1 '
5df38fde0 docs: Regen CLI docs
3b0f8034b tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS
68187036f images.Text: Add "alignx" option for horizontal alignment
240a85734 docs: Regen CLI docs
21b2917c6 Merge commit '
e9fbadacc3f09191e2e19f112a49777eeb8df06c '
5cc7ad562 tpl/images: Add images.QR function
9b588ee9e Update gocloud and docs for S3-Compatible Endpoints
b24377040 tpl/tplimpl: Update details shortcode
0535f4b22 tpl/tplimpl: Add details shortcode
2dd21cf90 Merge commit '
e477373487abcccdbed95688e37aa74b9b8fc198 '
869321ffa dartsass: Add silenceDeprecations option
492981933 Merge commit '
838bd312b1a287bb33962ad478dbc54737654f35 '
c79b7d840 docs: Regen CLI docs
101410f08 docs: Regenerate CLI docs
700846bc9 Merge commit '
de0df119b504a91c9e1f442b07954f366ffb2932 '
1fb46bb7c docs: Regen CLI docs
923fd9044 commands: Add "hugo build" as an alias for "hugo"
244ea3067 Merge commit '
39fd3b557014e339bc6c68a7ff34a7734a735ee0 '
f2e8913d2 Add support for Obsidian type blockquote alerts
9777cfa83 Merge commit '
dec8cd4ada29218971743333f8ac662a9c06aad8 '
b3f6d546c output: Fix docshelper template lookup order for AMP pages
476507712 Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder
b2507b8ab tpl/transform: Make Plainify and ToMath return template.HTML
154525780 docs: Regen docshelper
9d9a0848c Merge commit '
a6e635ca7d905d9ec3ffd708db2694f680b03aae '
b56a8baa1 math: Add trigonometric functions and some angle helper functions
59f708c0e source: Expose GitInfo Body
7a330c378 Merge commit '
8b9803425e63e1b1801f8d5d676e96368d706722 '
1ea10926d deploy: Add stripIndexHtml target option
903da161a markup/goldmark: Add the Hugo Goldmark Extras "delete" extension
63cf1ea35 deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0
6dcbebe11 config: Remove extraneous BuildConfig setting
1c89b76c2 docs: Regen docshelper
976b30877 markup/goldmark: Support extras extension
0da4eee49 commands: Add gen chromastyles --lineNumbersTableStyle flag
daf545b56 docs: Regen docshelper
a46a8ac97 all: Fix duplicate words in comments
9a3c76650 tpl/tplimpl: Optionally exclude content from sitemap
737b3b210 tpl/tplimpl: Update Google Analytics template and config
9283d3071 docs: Regen CLI docs
fa0437be3 docs: Regen docshelper
c318cd850 docs: Fix hyphens and grammar in synopsis of command 'hugo server'
5896f23a9 js: Support JSX and JSXImportSourceOptions
08b0bca77 Merge commit '
2658a71e1b6fe24a8b754a62ce0398a09d270d86 '
c4c5be6c2 docs: Regen docshelper
ec07d66fe Add images.Dither filter
3b23f2b89 docs: Regen CLI docs
d1c5d6a5e docs: Regenerate docshelper
6c8c9da77 Merge commit '
6efb279bfacbd7304cef994be8181c6f804e7dd4 '
5ce83ee91 docs: Make null booleans falsy in the docs helper
1185cfc71 docs: Regen docs helper
aab11aad7 Merge commit '
9b0050e9aabe4be65c78ccf292a348f309d50ccd ' as 'docs'
git-subtree-dir: docs
git-subtree-split:
0755fb534d8b4cde8a0227698da634e3536283ff
Bjørn Erik Pedersen [Mon, 23 Mar 2026 17:13:50 +0000 (18:13 +0100)]
commands: Update docs linke to Node.js docs
eason [Mon, 23 Mar 2026 16:50:15 +0000 (00:50 +0800)]
create: Return error instead of panic when page not found
When `hugo new` creates a content file on a case-insensitive filesystem
where a file with the same name but different case already exists (e.g.
Floop.md vs floop.md), the internal page lookup fails because it uses
exact string comparison. This previously caused an unhelpful panic.
Replace the panic with a descriptive error message that tells the user
what went wrong and suggests checking for case-variant filenames.
Fixes #14112
Co-authored-by: easonysliu <easonysliu@tencent.com>
Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Alexandre Vaz [Mon, 23 Mar 2026 16:49:13 +0000 (13:49 -0300)]
commands: Preserve non-content files in convert output
When running `hugo convert` with `--output`, copy the content tree first so non-content bundle resources are kept in the destination, then overwrite converted content files.
Also avoid recursive self-copy when the output path points inside the content tree by skipping output directories during copy.
Fixes #4621
Bjørn Erik Pedersen [Mon, 23 Mar 2026 15:00:50 +0000 (16:00 +0100)]
npm: Use workspaces to simplify `hugo mod npm pack`
Rewrite `hugo mod npm pack` to use npm workspaces. Module deps are now
written to packages/hugoautogen/package.json and the root package.json
gets a "workspaces" reference. A hugo_packagemeta.json sidecar stores a
hash of all input package files so regular commands can warn when npm
deps are out of sync.
Other changes:
- Workspace glob patterns (*, **, {a,b}) are resolved via gobwas/glob.
- Workspaces defined in package.hugo.json are supported.
- package.hugo.json is only recognised at module roots, not in workspaces.
- When package.hugo.json exists, package.json is not mounted or vendored.
- packages/hugoautogen is not mounted or vendored from dependencies.
- Add usePackageJSON import option (auto/always/never) to control whether
a module's npm deps are included. "auto" checks for Hugo config files
or package.hugo.json.
- The staleness check is skipped when running `hugo mod npm pack` itself.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dependabot[bot] [Sat, 21 Mar 2026 20:19:50 +0000 (21:19 +0100)]
build(deps): bump github.com/olekukonko/tablewriter from 1.1.3 to 1.1.4 (#14641)
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.1.3...v1.1.4)
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.1.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Tay [Sat, 21 Mar 2026 20:17:12 +0000 (13:17 -0700)]
commands: Close cpu profile file when StartCPUProfile fails
Bjørn Erik Pedersen [Sat, 21 Mar 2026 18:09:14 +0000 (19:09 +0100)]
Replace deprecated site.Data with hugo.Data in tests
This also fixes a subtle server reload issue when changing files inside /data and using the recently added hugo.Data method.
Bjørn Erik Pedersen [Sat, 21 Mar 2026 10:23:11 +0000 (11:23 +0100)]
Replace deprecated excludeFiles and includeFiles with files in tests
dependabot[bot] [Fri, 20 Mar 2026 08:23:03 +0000 (08:23 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.7.16 to 1.7.17
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.16 to 1.7.17.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.16...v1.7.17)
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.17
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Thu, 19 Mar 2026 15:37:25 +0000 (15:37 +0000)]
build(deps): bump github.com/magefile/mage from 1.15.0 to 1.16.1
Bumps [github.com/magefile/mage](https://github.com/magefile/mage) from 1.15.0 to 1.16.1.
- [Release notes](https://github.com/magefile/mage/releases)
- [Commits](https://github.com/magefile/mage/compare/v1.15.0...v1.16.1)
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-version: 1.16.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Thu, 19 Mar 2026 15:37:38 +0000 (15:37 +0000)]
build(deps): bump golang.org/x/image from 0.36.0 to 0.37.0
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/image/compare/v0.36.0...v0.37.0)
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Thu, 19 Mar 2026 15:40:15 +0000 (15:40 +0000)]
build(deps): bump google.golang.org/grpc from 1.78.0 to 1.79.3
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.78.0 to 1.79.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.78.0...v1.79.3)
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.79.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Joe Mooring [Thu, 19 Mar 2026 17:35:06 +0000 (10:35 -0700)]
tpl/tplimpl: Fix Vimeo shortcode test
Closes #14649
Bjørn Erik Pedersen [Thu, 19 Mar 2026 16:28:20 +0000 (17:28 +0100)]
Remove the AI Watchdog workflow for now
It's failing with a 404 that I don't know how to fix (or don't have the time to investigate). It works fine when run locally.
Bjørn Erik Pedersen [Thu, 19 Mar 2026 16:02:16 +0000 (17:02 +0100)]
Remove 'bep' from PR user logins skip list
To test it and see why it fails.
Bjørn Erik Pedersen [Thu, 19 Mar 2026 12:52:36 +0000 (13:52 +0100)]
tpl/tplimpl: Comment out the Vimeo simple shortcode tests
See #14649
Bjørn Erik Pedersen [Tue, 17 Mar 2026 15:17:47 +0000 (16:17 +0100)]
Replace deprecated :filename with :contentbasename in the permalinks test
hugoreleaser [Mon, 16 Mar 2026 17:56:18 +0000 (17:56 +0000)]
releaser: Prepare repository for 0.159.0-DEV
[ci skip]
hugoreleaser [Mon, 16 Mar 2026 17:42:04 +0000 (17:42 +0000)]
releaser: Bump versions for release of 0.158.0
[ci skip]
Bjørn Erik Pedersen [Mon, 16 Mar 2026 15:44:08 +0000 (16:44 +0100)]
deps: Upgrade github.com/evanw/esbuild v0.27.3 => v0.27.4
dependabot[bot] [Mon, 16 Mar 2026 08:29:06 +0000 (08:29 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.133.0 to 0.134.0
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.133.0 to 0.134.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.133.0...v0.134.0)
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.134.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 16 Mar 2026 08:28:49 +0000 (08:28 +0000)]
build(deps): bump golang.org/x/tools from 0.42.0 to 0.43.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.42.0...v0.43.0)
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Bjørn Erik Pedersen [Sun, 15 Mar 2026 10:38:18 +0000 (11:38 +0100)]
resources: Re-publish on transformation cache hit
When a resource transformation result was served from cache (same
options as a previous build), the output file was not re-written to
disk. This caused incorrect output when toggling transformation
options (e.g. minify) back to a previously seen value in server mode.
Fixes #14629
Joe Mooring [Sun, 15 Mar 2026 13:42:17 +0000 (06:42 -0700)]
create/skeletons: Use css.Build in theme skeleton
Closes #14626
Bjørn Erik Pedersen [Sun, 15 Mar 2026 10:04:07 +0000 (11:04 +0100)]
tpl/css: Add a test case for rebuilds on CSS options changes
Joe Mooring [Sun, 15 Mar 2026 04:25:40 +0000 (21:25 -0700)]
hugolib: Allow regular pages to cascade to self
Closes #14627
dependabot[bot] [Sun, 8 Mar 2026 20:44:55 +0000 (20:44 +0000)]
build(deps): bump gocloud.dev from 0.44.0 to 0.45.0
Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.44.0...v0.45.0)
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-version: 0.45.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 9 Mar 2026 08:34:54 +0000 (08:34 +0000)]
build(deps): bump golang.org/x/sync from 0.19.0 to 0.20.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/sync/compare/v0.19.0...v0.20.0)
---
updated-dependencies:
- dependency-name: golang.org/x/sync
dependency-version: 0.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Bjørn Erik Pedersen [Sat, 14 Mar 2026 10:35:33 +0000 (11:35 +0100)]
tpl/css: Allow the user to override single loader entries
Fixes #14623
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
Bjørn Erik Pedersen [Fri, 13 Mar 2026 15:30:06 +0000 (16:30 +0100)]
tpl/css: Fix external source maps
Fixes #14620
Bjørn Erik Pedersen [Fri, 13 Mar 2026 12:14:40 +0000 (13:14 +0100)]
tpl/css: Make default loader resolution for CSS @import and url() always behave the same
Before this commit, we did dynamic loader resolution for CSS bundling for resources resolved by Hugo while any fallback to ESBuild would fall back to a (potentially) empty loaders config.
This revises the logic to always use a static list (see below) if `loaders` is not set. This should be easier do document and less confusing for the end user.
````
".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".avif",
".woff", ".woff2", ".ttf", ".eot", ".otf"
````
Fixes #14619
Joe Mooring [Fri, 13 Mar 2026 01:31:12 +0000 (18:31 -0700)]
hugolib: Fix server no watch
Closes #14615
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Joe Mooring [Fri, 13 Mar 2026 01:51:55 +0000 (18:51 -0700)]
internal/js: Add default mainFields for CSS builds
Closes #14614
Bjørn Erik Pedersen [Mon, 9 Mar 2026 10:16:36 +0000 (11:16 +0100)]
Add css.Build
Fixes #14609
Fixes #14613
Bjørn Erik Pedersen [Wed, 11 Mar 2026 11:36:13 +0000 (12:36 +0100)]
Upgrade to to Go 1.26.1 (#14597) (note)
This fixes a security issue: https://www.cve.org/CVERecord?id=CVE-2026-27142
Closes #14595
Bjørn Erik Pedersen [Tue, 10 Mar 2026 09:15:37 +0000 (10:15 +0100)]
resources: Fix context canceled on GetRemote with per-request timeout
The per-request timeout context was cancelled via defer in the getRes
closure, before io.ReadAll(res.Body) in the outer scope could read
the response body. Fix this by returning the cancel function from
getRes so each caller manages its own cancel lifecycle.
Fixes #14611
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bjørn Erik Pedersen [Sun, 8 Mar 2026 20:52:07 +0000 (21:52 +0100)]
resources: Use full path for Exif etc. decoding error/warning messages
Fixes #12693
Bjørn Erik Pedersen [Thu, 5 Mar 2026 11:39:43 +0000 (12:39 +0100)]
Move to new locales library and upgrade CLDR from v36.1 to v48.1
* I had all kinds of issues upgrading CLDR on the old library, so I decided to start fresh in github.com/bep/golocales
* It shaves off about 3 MB of the binary, and package init cost is zero compared to the old localescompressed (5000x faster).
* We will probably move to the `text/**` packages at this point, but this will have to do for now.
Bjørn Erik Pedersen [Sun, 8 Mar 2026 12:38:38 +0000 (13:38 +0100)]
tpl/tplimpl: Prefer early suffixes when media type matches
Fixes #13877
Close #14601
Co-Authored-By: Joe Mooring <joe.mooring@veriphor.com>
Joe Mooring [Fri, 6 Mar 2026 20:02:10 +0000 (12:02 -0800)]
tpl/strings: Add strings.ReplacePairs function
Closes #14594
Bjørn Erik Pedersen [Sat, 7 Mar 2026 15:37:47 +0000 (16:37 +0100)]
all: Run go fix ./...
Bjørn Erik Pedersen [Sat, 7 Mar 2026 10:39:31 +0000 (11:39 +0100)]
internal/warpc: Fix SIGSEGV in Close() when dispatcher fails to start
Only set started=true when Start() succeeds, so Close() doesn't
attempt to close a nil dispatcher.
Fixes #14536
Bjørn Erik Pedersen [Sat, 7 Mar 2026 11:48:15 +0000 (12:48 +0100)]
github: Remove pull_request_template.md
* Main reason is that it slows down my own `gh` workflow (I also frequently accidentally select that template).
* We also don't have a large volume of PRs from new contributors, so the template isn't as necessary.
Bjørn Erik Pedersen [Fri, 6 Mar 2026 11:18:19 +0000 (12:18 +0100)]
testing: Make commands tests pass in Go 1.26.1
Joe Mooring [Sat, 28 Feb 2026 09:36:28 +0000 (01:36 -0800)]
refactor: Deprecate language configuration and template methods
Configuration:
- languageCode -> locale (either in root or per-language)
- languageName -> label
- languageDirection -> direction
Methods:
- .Language.LanguageCode -> .Language.Locale
- .Language.LanguageName -> .Language.Label
- .Language.LanguageDirection -> .Language.Direction
- .Site.LanguageCode -> .Site.Language.Locale
Example configuration:
[languages.en]
direction = 'ltr'
label = 'English'
locale = 'en-US'
weight = 1
Closes #14269
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bjørn Erik Pedersen [Mon, 2 Mar 2026 09:51:18 +0000 (10:51 +0100)]
Replace Exif with Meta in tests
dependabot[bot] [Mon, 2 Mar 2026 12:01:37 +0000 (13:01 +0100)]
build(deps): bump golang.org/x/net from 0.50.0 to 0.51.0 (#14569)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.50.0 to 0.51.0.
- [Commits](https://github.com/golang/net/compare/v0.50.0...v0.51.0)
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.51.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Mon, 2 Mar 2026 11:57:29 +0000 (12:57 +0100)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.9 to 2.24.10 (#14585)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.24.9 to 2.24.10.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.9...v2.24.10)
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.10
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Mon, 2 Mar 2026 11:57:10 +0000 (12:57 +0100)]
build(deps): bump github.com/bep/imagemeta from 0.15.0 to 0.17.0 (#14584)
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta) from 0.15.0 to 0.17.0.
- [Release notes](https://github.com/bep/imagemeta/releases)
- [Commits](https://github.com/bep/imagemeta/compare/v0.15.0...v0.17.0)
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bjørn Erik Pedersen [Fri, 27 Feb 2026 09:21:12 +0000 (10:21 +0100)]
Fix index out of range panic in fileEventsContentPaths
The nested loop had dirs as the outer loop and others as the inner loop
with a single counter, causing n to exceed len(others) when multiple
dirs existed. Swap the loop order so each file in others is checked
against all dirs exactly once.
Fixes #14573
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Joe Mooring [Thu, 26 Feb 2026 19:08:08 +0000 (11:08 -0800)]
resources: Improve getImageOps error message
Closes #14571
Bjørn Erik Pedersen [Thu, 26 Feb 2026 10:11:54 +0000 (11:11 +0100)]
resources/images: Add IsImageResourceWithMeta etc. tests for bmp and gif
Closes #14568
hugoreleaser [Wed, 25 Feb 2026 16:57:59 +0000 (16:57 +0000)]
releaser: Prepare repository for 0.158.0-DEV
[ci skip]
hugoreleaser [Wed, 25 Feb 2026 16:38:33 +0000 (16:38 +0000)]
releaser: Bump versions for release of 0.157.0
[ci skip]
Bjørn Erik Pedersen [Wed, 25 Feb 2026 16:35:20 +0000 (17:35 +0100)]
Fix menu pageRef resolution in multidimensional setups
Fixes #14566
Bjørn Erik Pedersen [Wed, 25 Feb 2026 13:26:50 +0000 (14:26 +0100)]
Handle GitInfo for modules where Origin is not set when running go list
This is an upstream bug, but this workaround seem to work fine.
Fixes #14564
Joe Mooring [Tue, 24 Feb 2026 05:27:05 +0000 (21:27 -0800)]
commands: Update link to highlighting style examples
Closes #14556
Bjørn Erik Pedersen [Wed, 25 Feb 2026 09:39:07 +0000 (10:39 +0100)]
docs: Regen and fix the imaging docshelper output
Fixes #14562
Bjørn Erik Pedersen [Wed, 25 Feb 2026 09:29:05 +0000 (10:29 +0100)]
Bjørn Erik Pedersen [Tue, 24 Feb 2026 20:38:42 +0000 (21:38 +0100)]
Squashed 'docs/' changes from
42914c50e ..
80dd7b067
80dd7b067 theme: Fix border class in render-codeblock template
0d3fde6c9 content: Fix typo
23a4adb29 content: More site => project changes
9243e9f6b content: Rename site configuration to project configuration (phase 2)
330aa2249 content: Miscellaneous edits
25ce893be content: Clarify sort order with PAGE.Rotate
b398506dc content: Various dimension improvements
c54573d13 content: Use singular form in method section descriptions
d9a95fe54 content: Improve description of PAGE.Rotate
154f30600 content: Fix link
c71bd2776 content: Address Markdown linting error
72c88e68e content: Improve pages related to content dimensions
b85afa645 content: Fix formatting
7aaca8947 content: More site-to-project changes
8e1579030 content: Update quick start guide
f7ba1fde2 content: Make new-in into a note
8b9d51584 theme: Address TailwindCSS warnings
3a4c2a25c theme: Address Hugo v0.156.0 deprecations
4f1a2bd7b content: Improve glossary entries
21bcd23a6 content: Update glossary entry
c72ef1116 content: Update quick start guide
c0737ffab content: Add typography plugin to TailwindCSS example
80bcb868e content: Remove Site.AllPages from examples
2b9ba5831 content: Replace Page.Sites and Site.Sites with hugo.Sites
2cdcc2556 content: Remove outdated badges
5a4beb530 content: Replace Site.Data with hugo.Data
de4651b5d content: Update glossary entry
2302825a7 content: Add hugo.Data and note other deprecations
bac5da4b5 content: Add hugo.Sites and update the other Sites methods
0f7d99153 content: Add Site.IsDefault
f888f33bb content: Update glossary entries
65311c2de content: Include the "build" subcommand where appropriate
4991320d2 content: Standard shell language code in info strings
b16d9f162 theme: Style todo lists
f121450c6 content: Update version references
5a81dd8c2 content: Update CLI documentation
f3ae0ce86 content: Rename site configuration to project configuration (phase 1)
9c8327119 content: Miscellaneous edits
fbff91e22 Update HUGO_VERSION to 0.156.0
2ec625ae8 content: Restore snap installation instructions
fc8c246b8 content: Clarify module initialization
git-subtree-dir: docs
git-subtree-split:
80dd7b067c31c28b13c51f3ac4636890509a4bb7
Bjørn Erik Pedersen [Tue, 24 Feb 2026 18:45:12 +0000 (19:45 +0100)]
Add AVIF, HEIF and HEIC partial support (only metadata for now)
* Add AVIF, HEIF and HEIC partial support
* Add them as media types.
* Support reading metadata (Width, Height, Exif, etc.) from these formats.
* Add a new template function IsImageResourceMeta to check if a resource supports image metadata operations, which will return true for AVIF, HEIF and HEIC resources even if they don't support full image operations yet.
Fixes #14549
Joe Mooring [Tue, 24 Feb 2026 04:02:07 +0000 (20:02 -0800)]
resources/images: Adjust WebP processing defaults
defaultWebpUseSharpYuv: true => false
defaultWebpMethod: 4 => 2
Bjørn Erik Pedersen [Mon, 23 Feb 2026 16:43:17 +0000 (17:43 +0100)]
Add Page.GitInfo support for content from Git modules
Use blobless git clone (--filter=blob:none --no-checkout) to fetch
commit history for content from Git modules, then map it using the
existing gitmap library. Cloned repos are cached in the modulegitinfo file cache.
Closes #14431
Fixes #5533
Paul van Brouwershaven [Mon, 23 Feb 2026 15:38:13 +0000 (16:38 +0100)]
Add per-request timeout option to `resources.GetRemote`
Bjørn Erik Pedersen [Mon, 23 Feb 2026 14:05:07 +0000 (15:05 +0100)]
Update AI Watchdog action version in workflow
dependabot[bot] [Mon, 23 Feb 2026 08:39:27 +0000 (08:39 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.8 to 2.24.9
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.24.8 to 2.24.9.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.8...v2.24.9)
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 23 Feb 2026 08:39:47 +0000 (08:39 +0000)]
build(deps): bump github.com/bep/imagemeta from 0.14.0 to 0.15.0
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/bep/imagemeta/releases)
- [Commits](https://github.com/bep/imagemeta/compare/v0.14.0...v0.15.0)
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Bjørn Erik Pedersen [Mon, 23 Feb 2026 10:03:38 +0000 (11:03 +0100)]
config: Skip taxonomy entries with empty keys or values
When non-taxonomy keys (e.g. disableKinds = []) are placed after
[taxonomies] in TOML, they become part of the taxonomies table.
An empty-valued entry creates a phantom taxonomy with an empty
pluralTreeKey, causing .Ancestors to loop indefinitely.
Fixes #14550
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bjørn Erik Pedersen [Sat, 21 Feb 2026 17:53:41 +0000 (18:53 +0100)]
Add guideline for brevity in code and comments
Added a guideline emphasizing brevity in code, comments, and commit messages.
Bjørn Erik Pedersen [Sat, 21 Feb 2026 15:04:32 +0000 (16:04 +0100)]
modules: Include JSON error info from go mod download in error messages
Fixes #14543
Bjørn Erik Pedersen [Fri, 20 Feb 2026 17:47:25 +0000 (18:47 +0100)]
hugolib: Fix automatic section pages not replaced by sites.complements
When a home page or section page in language A is backed by a file and
language B has no content file for that section, the automatic page for
language B was not replaced by the complement from language A. This
happened because:
1. The content node shifter returned auto pages (not backed by files) as
exact matches without trying complement fallback.
2. findContentNodeForSiteVector immediately returned auto pages as exact
matches without considering file-backed complements.
3. getPagesInSection used Get (no fallback) for IncludeSelf, preventing
complement resolution for home/section pages.
Fix by preferring file-backed complement pages over auto pages in the
shift and lookup mechanisms, and using fallback for self-inclusion.
Fixes #14540
Co-Authored-By: Joe Mooring <joe.mooring@veriphor.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hugoreleaser [Wed, 18 Feb 2026 16:58:30 +0000 (16:58 +0000)]
releaser: Prepare repository for 0.157.0-DEV
[ci skip]
hugoreleaser [Wed, 18 Feb 2026 16:39:55 +0000 (16:39 +0000)]
releaser: Bump versions for release of 0.156.0
[ci skip]
Bjørn Erik Pedersen [Wed, 18 Feb 2026 10:15:47 +0000 (11:15 +0100)]
hugolib: Move site.Data to hugo.Data, deprecate Site.AllPages/BuildDrafts/Languages
This moves Site.Data to the hugo namespace as hugo.Data, following the
same pattern used for hugo.Sites. Also deprecate Site.AllPages,
Site.BuildDrafts, and Site.Languages.
Closes #14521
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dependabot[bot] [Wed, 18 Feb 2026 08:22:59 +0000 (08:22 +0000)]
build(deps): bump google.golang.org/api from 0.255.0 to 0.267.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.255.0 to 0.267.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.255.0...v0.267.0)
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.267.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Joe Mooring [Tue, 17 Feb 2026 18:36:25 +0000 (10:36 -0800)]
hugolib: Add Page.Sites to Site.Sites deprecation notice
Closes #14532
Bjørn Erik Pedersen [Tue, 17 Feb 2026 12:03:10 +0000 (13:03 +0100)]
hugolib: Simplify sites collection
Bjørn Erik Pedersen [Tue, 17 Feb 2026 11:45:15 +0000 (12:45 +0100)]
hugolib: Adjust hugo.Sites.Default
Fixes #14531
Bjørn Erik Pedersen [Mon, 16 Feb 2026 19:09:37 +0000 (20:09 +0100)]
Move common/hugo/HugoInfo to resources/page
* This break the circular dependency between hugolib and resources/page, and allow HugoInfo to use the proper Page ans Site interfaces.
* It's a little misplaced, but it makes everything easier to maintain and test, so that's well worth it.
Bjørn Erik Pedersen [Sun, 15 Feb 2026 23:09:17 +0000 (00:09 +0100)]
commands: Fix --panicOnWarning flag having no effect with module version warnings
The --panicOnWarning flag was not wired into the root command's logger,
so warnings emitted during config loading (such as module version
incompatibility warnings) would not trigger a panic.
Bind the panicOnWarning flag to the rootCommand struct and set the
PanicOnWarningHook on the logger created in createLogger.
Fixes #14524
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Joe Mooring [Fri, 13 Feb 2026 23:47:18 +0000 (15:47 -0800)]
hugolib: Add hugo.Sites and .Site.IsDefault(), modify .Site.Sites
Changes:
- Add hugo.Sites to return all sites for all dimensions
- Modify .Site.Sites to return all sites for all dimensions
- Deprecate .Site.Sites in favor of hugo.Sites
- Add .Site.IsDefault() to report whether the current site is the
default site across all dimensions
- Consolidate tests
Closes #14479
Closes #14481
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
dependabot[bot] [Mon, 16 Feb 2026 09:56:59 +0000 (09:56 +0000)]
build(deps): bump github.com/bep/textandbinarywriter
Bumps [github.com/bep/textandbinarywriter](https://github.com/bep/textandbinarywriter) from 0.0.0-
20251212174530 -
cd9f0732f60f to 0.1.0.
- [Release notes](https://github.com/bep/textandbinarywriter/releases)
- [Commits](https://github.com/bep/textandbinarywriter/commits/v0.1.0)
---
updated-dependencies:
- dependency-name: github.com/bep/textandbinarywriter
dependency-version: 0.1.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
khayyam [Mon, 16 Feb 2026 16:32:45 +0000 (11:32 -0500)]
paths: Fix handling of _ as a path name
Fixes #14344
Bjørn Erik Pedersen [Sun, 15 Feb 2026 22:24:51 +0000 (23:24 +0100)]
output: Remove unused method
Closes #14522
dependabot[bot] [Mon, 16 Feb 2026 08:32:55 +0000 (08:32 +0000)]
build(deps): bump github.com/bep/simplecobra from 0.6.1 to 0.7.0
Bumps [github.com/bep/simplecobra](https://github.com/bep/simplecobra) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/bep/simplecobra/releases)
- [Commits](https://github.com/bep/simplecobra/compare/v0.6.1...v0.7.0)
---
updated-dependencies:
- dependency-name: github.com/bep/simplecobra
dependency-version: 0.7.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 16 Feb 2026 08:32:46 +0000 (08:32 +0000)]
build(deps): bump github.com/bep/tmc from 0.5.1 to 0.6.0
Bumps [github.com/bep/tmc](https://github.com/bep/tmc) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/bep/tmc/releases)
- [Commits](https://github.com/bep/tmc/compare/v0.5.1...v0.6.0)
---
updated-dependencies:
- dependency-name: github.com/bep/tmc
dependency-version: 0.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>