Shiwang Bisht
a25af7facf
metrics: Improve template metrics duration formatting
...
Fixes #15027
2026-08-24 11:36:58 +02:00
Bjørn Erik Pedersen
723579ff54
Remove comments from rebuild test functions
...
Removed commented-out explanations for test functions related to mounted assets and their behavior during rebuilds.
2026-08-24 11:32:24 +02:00
Bjørn Erik Pedersen
85ad5e48eb
hugolib: Add some fast render mode integration tests
2026-08-24 11:32:24 +02:00
Bjørn Erik Pedersen
7b5199fdef
all: Run modernize -fix ./...
2026-08-20 21:56:40 +02:00
Bjørn Erik Pedersen
e31ff547d2
Upgrade to Go 1.27
...
Closes #15228
2026-08-20 20:23:18 +02:00
Joe Mooring
87260e4a60
commands: Fix lang flag description in config command
...
Closes #15223
2026-08-19 20:00:06 +02:00
Bjørn Erik Pedersen
8405b802cf
tpl: Improve the return keyword in templates
...
Replace the partial return template rewriting with a sentinel error
trapped in the template executor:
* return now works in any template, not just partials.
* return can be used anywhere in the template, e.g. inside if/range;
it stops execution of the current template, so a bare return in a
block or template include ends just that template.
* {{ return <value> }} sets the return value of the enclosing partial;
using it outside a partial is now an error (it was silently ignored).
The fork changes are limited to hugo_template.go plus one mechanical
rename (walkTemplate -> walkTemplateOld) mirrored in the fork script.
Closes #15212
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-19 16:21:11 +02:00
Shiwang0-0
bf05832d14
page: Add IndexOf method to Pages
...
See #13589
2026-08-19 15:47:58 +02:00
Bjørn Erik Pedersen
a05736cb9f
tpl/resources: Add resources.Publish
...
Closes #15208
2026-08-19 13:13:55 +02:00
Bjørn Erik Pedersen
49dceb19f5
hugolib: Fix slice bounds panic when deleting multiple nodes at same path
...
The contentNodes cases in Delete/DeleteFunc spliced the slice inside a
forward range loop, panicking when a second deletion hit the last index,
and the shrunken slice was never written back to the tree. Let the
Shifter return the updated node and re-insert it on partial deletes.
Fixes #15207
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-15 20:42:57 +02:00
Joe Mooring
5e7099256e
hugolib: Fix ReadingTime and FuzzyWordCount calculations
...
Closes #15206
2026-08-15 20:41:03 +02:00
hugoreleaser
0805c734a4
releaser: Prepare repository for 0.166.0-DEV
...
[ci skip]
2026-08-12 14:47:36 +00:00
hugoreleaser
76a5e1880a
releaser: Bump versions for release of 0.165.0
...
[ci skip]
2026-08-12 14:26:28 +00:00
dependabot[bot]
0bb337b22a
build(deps): bump github.com/bep/imagemeta from 0.17.3 to 1.0.0
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.17.3 to 1.0.0.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.17.3...v1.0.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 1.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-12 13:49:11 +02:00
dependabot[bot]
03dc9170b3
build(deps): bump github.com/evanw/esbuild from 0.28.1 to 0.28.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.28.1 to 0.28.2.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.28.1...v0.28.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.28.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-12 13:48:55 +02:00
dependabot[bot]
c829b736cc
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.14 to 2.24.16
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.14 to 2.24.16.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.14...v2.24.16 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.16
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-12 11:38:40 +02:00
Bjørn Erik Pedersen
995a2159e5
resources: Resume chained resource transformations
...
This is a follow up the bug fix in #15189 . With the example given in that issue, the `css.Build` would be performed twice, which was unfortunate.
This commit fixes that by resuming the transformation from the last executed transformation.
See #15189
2026-08-11 19:12:24 +02:00
Bjørn Erik Pedersen
f88f0a9f59
resources/jsconfig: Drop source root mapping for the current source root
...
* Intellisense doesn't need it to do its work.
* This also avoids creating a jsconfig.js file in the common cases.
Fixes #15169
2026-08-11 15:57:03 +02:00
Bjørn Erik Pedersen
dd3f2731e0
Remove Star History from README
...
Removed Star History section from README.
Closes #15190
2026-08-10 23:08:30 +02:00
Bjørn Erik Pedersen
f772998fa3
Fix resource transformation chaining after content access
...
When a transformed resource had been initialized (e.g. via .Data, .Content
or .RelPermalink) before chaining another transformation, the new chain
would run on the transformed output instead of the original source,
re-running all transformations on their own output.
Fixes #15189
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-08-10 18:10:06 +02:00
Bjørn Erik Pedersen
8a55df7af2
Remove tailwindcss from the default security.exec.allow list (note)
...
Fixes #15178
Closes #15171
2026-08-10 15:59:57 +02:00
Bjørn Erik Pedersen
52c9bd7908
circleci: Upgrade to Go 1.26.5
2026-08-09 21:38:57 +02:00
Bjørn Erik Pedersen
44da086082
Add Data.Artifacts to css.Build and js.Build
...
Artifacts are the additional output files published as part of the build:
source maps and files emitted by ESBuild's file loader (e.g. fonts). Each
artifact provides Permalink, RelPermalink and MediaType, so e.g. font
preload links can be constructed in templates.
Also add media type definitions for source maps (application/source-map),
font/woff and font/woff2.
Fixes #15173
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-08 19:51:42 +02:00
Bjørn Erik Pedersen
2ffaf1fc1e
Fix server static file detection for deleted files/directories in the static syncer
...
Related to #15174
2026-08-08 18:08:03 +02:00
Bjørn Erik Pedersen
a808f6e40d
Fix server errors when deleting static files or directories
...
Fixes #15174
2026-08-08 18:08:03 +02:00
dependabot[bot]
94f3908ec6
build(deps): bump github.com/getkin/kin-openapi from 0.145.0 to 0.146.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.145.0 to 0.146.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.145.0...v0.146.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.146.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-07 11:31:51 +02:00
dependabot[bot]
75fcc7524a
build(deps): bump github.com/rogpeppe/go-internal from 1.15.0 to 1.16.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-version: 1.16.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-07 11:31:37 +02:00
Bjørn Erik Pedersen
33d1f2c853
css: Add classDark and classLight options to css.ChromaStyles and gen chromastyles
...
Closes #15167
2026-08-05 16:04:48 +02:00
Bjørn Erik Pedersen
64da6d7c62
markup/highlight: Re-emit token colors dropped by Chroma's minifier
...
Chroma drops token rules whose color equals the style's default foreground
(e.g. .nx in github-dark). In a paired light/dark setup the other sheet's
explicit rule then leaks in, since an explicit declaration beats inheritance
from .chroma. Apply the chromaCSSOverrides custom CSS unconditionally so
these rules survive in modeSelector sheets too.
Updates #15161
2026-08-04 16:10:27 +02:00
Bjørn Erik Pedersen
70db201ed4
Add importContext option to css.Build, js.Build, css.Sass and css.TailwindCSS
...
This allows @import statements to be resolved in a set of user provided resources (e.g. from resources.FromString or css.ChromaStyles) before the assets filesystem.
The option also applies to css.PostCSS via the shared import inlining, and css.Sass requires the dartsass transpiler. The import context is part of the transformation cache key.
Fixes #15103
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-08-03 21:20:06 +02:00
Bjørn Erik Pedersen
8a468df065
Remove some old deprecations
2026-07-29 20:48:47 +02:00
dependabot[bot]
b5fa03d3aa
build(deps): bump github.com/mattn/go-isatty from 0.0.22 to 0.0.24
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.22 to 0.0.24.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.22...v0.0.24 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-version: 0.0.24
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-29 18:42:01 +02:00
dependabot[bot]
9da472dd3b
build(deps): bump github.com/yuin/goldmark from 1.8.4 to 1.8.5
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.8.4 to 1.8.5.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.8.4...v1.8.5 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.8.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-29 18:41:48 +02:00
Bjørn Erik Pedersen
615e45d6e8
Add css.ChromaStyles
...
Move the stylesheet generation from the gen chromastyles command into
markup/highlight and share it with the new template function.
Fixes #15112
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-29 18:41:31 +02:00
dependabot[bot]
635532a20f
build(deps): bump golang.org/x/tools from 0.47.0 to 0.48.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.47.0 to 0.48.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.47.0...v0.48.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.48.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-29 11:52:08 +02:00
Shantanav Mukherjee
a243a6154c
check.sh: Handle staticcheck not installed/in PATH
2026-07-28 12:31:02 +02:00
dependabot[bot]
9c71f600bf
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.13 to 2.2.14
...
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji ) from 2.2.13 to 2.2.14.
- [Release notes](https://github.com/kyokomi/emoji/releases )
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.13...v2.2.14 )
---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
dependency-version: 2.2.14
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-28 12:29:19 +02:00
dependabot[bot]
420527fc6b
build(deps): bump github.com/getkin/kin-openapi from 0.144.0 to 0.145.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.144.0 to 0.145.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.144.0...v0.145.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.145.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-28 12:28:40 +02:00
dependabot[bot]
7fe786e3b0
build(deps): bump golang.org/x/image from 0.43.0 to 0.44.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.43.0 to 0.44.0.
- [Commits](https://github.com/golang/image/compare/v0.43.0...v0.44.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-27 17:44:56 +02:00
dependabot[bot]
03b244fc0b
build(deps): bump github.com/bep/imagemeta from 0.17.2 to 0.17.3
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.17.2 to 0.17.3.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.17.2...v0.17.3 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.17.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-27 17:44:44 +02:00
dependabot[bot]
961181334f
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.13 to 2.24.14
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.13 to 2.24.14.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.13...v2.24.14 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.14
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-27 17:44:32 +02:00
dependabot[bot]
e35b7f049d
build(deps): bump github.com/yuin/goldmark from 1.8.2 to 1.8.4
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.8.2 to 1.8.4.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.8.2...v1.8.4 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.8.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-27 17:44:14 +02:00
Bjørn Erik Pedersen
7d90277a28
warpc: Improve AVIF error message on memory allocation failure
...
See https://discourse.gohugo.io/t/avif-conversion-fails-for-jpg-files-with-embedded-colour-profiles-when-not-resizing/57392/4
2026-07-27 17:44:01 +02:00
dependabot[bot]
0796fa7ace
build(deps): bump golang.org/x/net from 0.56.0 to 0.57.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.56.0 to 0.57.0.
- [Commits](https://github.com/golang/net/compare/v0.56.0...v0.57.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.57.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-26 17:03:18 +02:00
Bjørn Erik Pedersen
6bf15241a1
Fix panic on server atomic save edits on MacOS
...
An atomic save (write temp file, rename into place) unlinks the inode the
watcher holds, so kqueue reports Remove for a file that's still on disk.
That took the delete branch and wiped the entire taxonomy subtree; the
following assemble then panicked in createMissingTaxonomies, where the
shifting tree.Get hit a not yet assembled *pageMetaSource.
Treat Remove of a path that still exists as an update, and use the
non-shifting GetRaw when checking for the auto created taxonomy node.
Fixes #15130
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-26 14:00:32 +02:00
Bjørn Erik Pedersen
861ede6d10
cache/filecache: Don't prune used cache entries with mixed-case dir names
...
On case-insensitive filesystems, entries created before we started lowercasing
the content paths in v0.123 are the same file as today's lowercased cache key,
and were removed on every hugo --gc.
Fixes #15101
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-26 11:40:27 +02:00
Bjørn Erik Pedersen
f228c87d41
Drop symlinks in parent directories
...
Lstat only refrains from following the last element of a path, so a symlink
in an intermediate directory was still resolved, and reads could escape the
mount via e.g. resources.Get "symlinkdir/secret.txt".
Walk the directories up to the mount root and reject any that is a symlink.
Follow-up to cf9c8f93c and f8b5fa09a .
2026-07-25 18:17:06 +02:00
dependabot[bot]
1b701b72ca
build(deps): bump golang.org/x/text from 0.38.0 to 0.40.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.38.0 to 0.40.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.38.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-25 18:14:11 +02:00
dependabot[bot]
a32d70b712
build(deps): bump github.com/getkin/kin-openapi from 0.140.0 to 0.144.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.140.0 to 0.144.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.140.0...v0.144.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.144.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-25 18:13:45 +02:00
dependabot[bot]
948cfb98f9
build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.80.0 to 1.82.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.80.0...v1.82.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.82.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-25 18:12:39 +02:00
dependabot[bot]
8930802ef2
build(deps): bump golang.org/x/mod from 0.37.0 to 0.38.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/mod/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-25 16:45:18 +02:00
Bjørn Erik Pedersen
7df45f615a
Delete .gemini
2026-07-25 11:30:55 +02:00
Joe Mooring
f961093ea9
markup/asciidocext: Fix TOC parsing for asciidoctor-html5s
...
Closes #15121
Co-authored-by: mike.szewil <szewil_michael@bah.com >
2026-07-22 19:32:19 +02:00
Joe Mooring
89b8c32200
common/hugo: Include non-go dependencies in go env output
...
Closes #15116
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-07-13 10:58:38 +02:00
Joe Mooring
984358f047
snap: Fix snap home environment
...
Closes #15114
2026-07-13 10:57:03 +02:00
Joe Mooring
d1f191c58d
Update README.md
...
- Remove Go Report Card badge (services has been sunset)
- Updated dependencies section
2026-07-13 10:56:09 +02:00
hugoreleaser
a198116669
releaser: Prepare repository for 0.165.0-DEV
...
[ci skip]
2026-07-06 17:47:51 +00:00
hugoreleaser
ce2470e701
releaser: Bump versions for release of 0.164.0
...
[ci skip]
2026-07-06 16:39:30 +00:00
dependabot[bot]
921db7b52c
build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2
...
Bumps [github.com/JohannesKaufmann/html-to-markdown/v2](https://github.com/JohannesKaufmann/html-to-markdown ) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases )
- [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v2.5.1...v2.5.2 )
---
updated-dependencies:
- dependency-name: github.com/JohannesKaufmann/html-to-markdown/v2
dependency-version: 2.5.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-06 15:21:13 +02:00
dependabot[bot]
786ce71e59
build(deps): bump golang.org/x/tools from 0.45.0 to 0.47.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.45.0 to 0.47.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.45.0...v0.47.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.47.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-06 13:34:38 +02:00
dependabot[bot]
5ad2846161
build(deps): bump golang.org/x/image from 0.42.0 to 0.43.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.42.0 to 0.43.0.
- [Commits](https://github.com/golang/image/compare/v0.42.0...v0.43.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-06 13:33:50 +02:00
dependabot[bot]
36ad9f583a
build(deps): bump golang.org/x/net from 0.55.0 to 0.56.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.55.0 to 0.56.0.
- [Commits](https://github.com/golang/net/compare/v0.55.0...v0.56.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.56.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-06 11:50:17 +02:00
dependabot[bot]
7c0a0bc979
build(deps): bump github.com/pelletier/go-toml/v2 from 2.4.2 to 2.4.3
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.4.2...v2.4.3 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-version: 2.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-06 11:49:16 +02:00
Bjørn Erik Pedersen
d83ce27ae0
tpl/tplimpl: Support sub paths in layouts passed to .Render
...
E.g. {{ .Render "foo/mylayout" }} matches mylayout templates in
<dir>/foo for every dir from the page's layout path up to the layouts root.
Closes #15056
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-05 20:14:32 +02:00
Bjørn Erik Pedersen
5a5f4a5495
all: Rewrite deprecated constructs in tests
2026-07-04 23:10:26 +02:00
Bjørn Erik Pedersen
c6acc246ab
Add markup.rst.syntaxHighlight option
...
Fixes #5349
2026-07-04 22:27:29 +02:00
Bjørn Erik Pedersen
29ed932513
tpl/resources: Deprecate resources.PostProcess in favour of templates.Defer
...
Fixes #15086
2026-07-04 21:28:31 +02:00
Bjørn Erik Pedersen
7b4ddd1863
contributing: Add a note about co-authoring attributions when borrowing test cases
2026-07-04 18:10:03 +02:00
bejaratommy
671897ae91
tpl/collections: Include key in IsSet unsupported-type warning
...
The warning logged when calling IsSet with an unsupported type did not
identify which key triggered it, making it hard to locate the offending
template. Include the key in the message.
Fixes #11794
2026-07-04 15:18:42 +02:00
dependabot[bot]
a879ebfaaa
build(deps): bump github.com/getkin/kin-openapi from 0.139.0 to 0.140.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.139.0 to 0.140.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.139.0...v0.140.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.140.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-04 14:43:32 +02:00
sjh9714
499794d19e
create: Keep new content placeholders buildable
...
Fixes #15078
2026-07-04 14:31:54 +02:00
hexbinoct
feb3d494b9
hugolib: Use the output format's suffix for alias paths
...
Alias generation hardcoded "index.html" and only recognized a ".html"
suffix, so an alias with an explicit ".htm" extension (or any other
suffix configured for the html media type) was written to the wrong
path. For example "d.htm" produced the directory "d.htm/index.html"
instead of the file "d.htm".
Build the alias file name from the output format's BaseName and the
media type's first suffix, and detect an explicit file by matching the
alias extension against the configured suffixes. The same check now
drives the uglyURLs case in Aliases.
Fixes #15066
2026-07-04 14:31:34 +02:00
Bjørn Erik Pedersen
65c82178b7
hugio: Speedup hasBytesWriter
...
The old implementation copied the incoming bytes into a fixed-size buffer
one byte at a time, and for every byte ran bytes.Contains for every
pattern over the whole buffer. That's O(n·patterns) scans of the buffer,
which showed up badly on large output (a full rendered page).
Scan each not-yet-matched pattern once per Write with bytes.Contains over
the chunk itself, in place, rather than per byte. The only carried state
is a small boundary window (the last maxPatternLen-1 bytes) joined with
the head of the next chunk, so a pattern straddling a Write boundary is
still detected. The chunk is never copied, so the extra allocation is
bounded by the longest pattern and independent of the output size. Once
all patterns have matched we mark done and drop the buffer.
patternLen summed the pattern lengths (to size the old buffer); the
boundary window only needs the longest pattern, so it's renamed
maxPatternLen and returns the max.
```bash
│ benchcmp.bench │ fix-hasbytewriter.bench │
│ sec/op │ sec/op vs base │
HasBytesWriter-10 2473.095µ ± ∞ ¹ 6.114µ ± ∞ ¹ -99.75% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ benchcmp.bench │ fix-hasbytewriter.bench │
│ B/op │ B/op vs base │
HasBytesWriter-10 48.00 ± ∞ ¹ 128.00 ± ∞ ¹ +166.67% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ benchcmp.bench │ fix-hasbytewriter.bench │
│ allocs/op │ allocs/op vs base │
```
2026-07-04 13:25:35 +02:00
dependabot[bot]
332d5ec823
build(deps): bump golang.org/x/mod from 0.36.0 to 0.37.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/mod/compare/v0.36.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-04 12:54:41 +02:00
dependabot[bot]
212cc11ada
build(deps): bump github.com/pelletier/go-toml/v2 from 2.3.1 to 2.4.2
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.3.1 to 2.4.2.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.3.1...v2.4.2 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-version: 2.4.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-04 12:54:04 +02:00
Bjørn Erik Pedersen
dfb35dcd7a
tpl/crypto: Add crypto.Hash
...
Add a generic crypto.Hash template function returning the hex-encoded
checksum of a string using one of md5, sha1, sha256 (default), sha384 or
sha512. The supported algorithms match those used for the SRI hash in
.Data.Integrity on fingerprinted resources, so an SRI hash can be built
by composing with encoding.HexDecode and encoding.Base64Encode.
Fixes #15072
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-03 18:03:05 +02:00
Bjørn Erik Pedersen
ef053faa6a
Merge commit 'af91eb1997ace34ef5eed0be31646e8483b78096'
2026-07-03 10:43:53 +02:00
Bjørn Erik Pedersen
af91eb1997
Squashed 'docs/' changes from e17426e2b6..c85af679bf
...
c85af679bf content: Miscellaneous edits
43149dae59 content: Cleanup trailing spaces
2b161d600c content: Improve hosting guides
edc02f6402 content: Improve description of scheduled Cloudflare builds
83dff65d50 content: Fix typos
a93f8b956b content: Fix formatting
3dde5702c7 content: Add instructions for scheduled Cloudflare builds
b1075d9c77 content: Change wrangler config format in Cloudflare hosting guide
565d3292c3 content: Add .mjs and .cjs variants to mounted config files
4fc418d223 content: Update version references
bf2efc9114 content: Update hosting guides
0d8ff2dfe1 Update HUGO_VERSION to 0.163.3
git-subtree-dir: docs
git-subtree-split: c85af679bfe21dd7c01924c47933444f002bdc6b
2026-07-03 10:43:53 +02:00
Bjørn Erik Pedersen
a5ec542393
Add encoding.HexDecode/Encode
...
Fixes #15068
See #15060
2026-06-28 21:39:51 +02:00
Bjørn Erik Pedersen
884439b9a2
deps: Upgrade github.com/evanw/esbuild v0.28.0 => v0.28.1
...
Test / test (1.26.x, ubuntu-latest) (push) Has been cancelled
Test / test (1.26.x, windows-latest) (push) Has been cancelled
Closes #15033
2026-06-28 19:07:48 +02:00
Joe Mooring
128fb17c2b
markup/pandoc: Add citation support
...
Closes #15062
Co-authored-by: Sebastian Höffner <info@sebastian-hoeffner.de >
2026-06-28 15:37:21 +02:00
Joe Mooring
e46d37a984
tpl/tplimpl: Make template name lookup case-insensitive
...
Closes #15057
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-28 15:36:29 +02:00
Bjørn Erik Pedersen
790a8aa474
deps: Add Chroma dark/light mode support
...
Test / test (1.26.x, ubuntu-latest) (push) Has been cancelled
Test / test (1.26.x, windows-latest) (push) Has been cancelled
Closes #15017
2026-06-27 18:21:20 +02:00
Joe Mooring
fe06735214
hugolib: Return error from .Render when template not found
...
Closes #15052
2026-06-25 12:09:52 +02:00
hugoreleaser
d15baf53a9
releaser: Prepare repository for 0.164.0-DEV
...
[ci skip]
2026-06-18 16:39:26 +00:00
hugoreleaser
4d22555aeb
releaser: Bump versions for release of 0.163.3
...
[ci skip]
2026-06-18 16:18:24 +00:00
Bjørn Erik Pedersen
ce1a7e0bce
markup/highlight: Escape lang in default code block rendering
2026-06-18 18:14:40 +02:00
Bjørn Erik Pedersen
c86d9f4aa8
Squashed 'docs/' changes from 1f8ddb8a52..e17426e2b6
...
e17426e2b6 content: Adjust Cloudflare hosting guide
02edafd770 content: Add build caching instructions for Cloudflare Workers
3430b3c154 content: Update version references
ed8f6930e6 content: Fix examples
3e1a3030ab content: Miscellaneous edits
77f12f75d7 Update HUGO_VERSION to 0.163.2
943417e8f2 content: Remove Hugo SFTP Upload from community tools
62d04f0440 content: Add --global to git config command in CI/CD examples
b9fd5b6cad content: Document GitInfo limitation
9d28aa9e0e content: Fix link references
66bba81f82 content: Fix link references
b08128c0aa content: Fix function reference
2da3083578 content: Miscellaneous edits
40e048f605 content: Use consistent terminology for configuration settings
1b8d67c3fe content: Add HUGO_ENVIRONMENT to the configuration introduction
a931241abe content: Remove erroneous config setting
d621e2c38b Update HUGO_VERSION to 0.163.1
a23a5a0465 content: Fix fenced code block
1122f0e8b5 content: Fix typo
076184e983 content: Miscellaneous standardization edits
b53b801061 theme: Adjust code language substitutions
6fe0cc5f77 content: Fix formatting
f6fc643110 content: Fix link
8e9cdfb9e9 content: Fix link
ae2e15a51e content: Fix links
c73fefee7a content: Fix formatting
9d0390e927 content: Fix link destinations
938a76e00f content: Update comments.md
01d66b670c content: Fix typos
d1e70b81cb content: Improve segmentation documentation
a2a2f89f7f content: Clarify applicability of format-specific imaging config keys
e6c487eb80 content: Remove outdated feature badge
39aebec026 content: Updates for v0.163.0
e9bd8eca6b Update HUGO_VERSION to 0.163.0
f088cf8d19 content: Update hosting guides
ce481a8798 content: Fix broken links
e1f09a8783 content: Remove hidden showcases
54f3a7651e content: Standardize link references
344f8d660e theme: Add nofollow to external links
a83ccec106 theme: Remove the qr transition
5e73f514b4 theme: Hide the search modal on pageswap
57f89ce22d theme: Trim https://gohugo.io from search results when running the server
f12aa1d1d0 content: Fix formatting in Defer
5ab496dd2a content: Add FastComments to the list of commenting systems
1819171668 theme: Remove some unused code
218754408b theme: Replace Turbo with Speculation Rules
bddc24beff content: Fix typos
1a3b527595 content: Fix typo
b72ccefbd9 content: Fix typo
4bfd6c937f content: Miscellaneous link edits
4b57ca8555 content: Clarify :filename slug inference in front matter config
5b1a03ff68 content: Remove outdated new-in badges
bcc6647be8 content: Fix link
263efb81ec content: Add front matter to core-methods.md
41e27e2e54 theme: Render function/method link titles as inline code
8875ef7fe6 content: Replace "scratch pad" with clearer data structure terminology
6e186e591d Update HUGO_VERSION to 0.162.1
30a90c961d content: Add missing configuration key data types
c8e5b9fd2d content: Replace h3 method sequences with description lists
8b44afbe31 content: Fix typo
04109b0921 content: Change collections.Dictionary note regarding nil map
9de560ca01 content: Remove Commento from comments integration list
d2d1506598 content: Update PostCSS examples
6c4bd3a096 content: Updates for v0.162.0
46e6e2c66d Update HUGO_VERSION to 0.162.0
6900d27eea content: Remove date from content file
2c1e04da4a theme: Darken inline code elements in content for better readability
1c5bd6a4b4 content: Clarify resources.Copy publication path
911c1c7549 content: Wrap relevant description list terms in backticks
740e887e05 misc: Remove VS Code extension suggestions
git-subtree-dir: docs
git-subtree-split: e17426e2b63dafe06354e7a204ce61506dc79dc3
2026-06-18 16:28:21 +02:00
Bjørn Erik Pedersen
e8988c3141
Merge commit 'c86d9f4aa8a58931f52df6516f10b67c807505fb'
2026-06-18 16:28:21 +02:00
Bjørn Erik Pedersen
70a9068aa6
parser/pageparser: Preserve non-ASCII whitespace after e.g. summary divider
...
Make it insted consume just ASCII whitespace, which preserves e.g. ideographic space (U+3000) after the summary divider, which is important for e.g. Chinese and Japanese content, and possibly other Unicode whitespace characters with meaning.
Doing this is possibly breaking, but not likely, and obviously the correct thing to do.
2026-06-18 16:23:06 +02:00
Joe Mooring
9d66d513ce
resources: Support babel/postcss config variants
...
Allow modules to use .mjs and .cjs file extensions for Babel and PostCSS
configuration files instead of just .js.
Closes #15039
Closes #15040
Closes #15043
2026-06-18 16:22:10 +02:00
Joe Mooring
f013346667
hugolib: Fix page/section name collision regression
...
Fixes #15046
When a regular page (e.g. content/s1.md) and a section (content/s1/)
share the same tree key, the assembler must not overwrite the real page
with a synthetic section. Restore the existence guard that was present
in v0.152.2.
The fix checks if a node already exists at the section key before
inserting a synthetic section during root section creation.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-18 16:20:34 +02:00
hugoreleaser
96e06e1ab8
releaser: Prepare repository for 0.164.0-DEV
...
[ci skip]
2026-06-15 15:17:37 +00:00
hugoreleaser
19a5cec0b9
releaser: Bump versions for release of 0.163.2
...
[ci skip]
2026-06-15 14:55:00 +00:00
Bjørn Erik Pedersen
134674f00d
Continue resolving on ERR_ACCESS_DENIED in Node's resolver
...
And then rethrow the ERR_ACCESS_DENIED if we cannot recover.
There's more details in #15041 , but this error has been seen on Netlify with the CJS because of how Netlify has their node_modules cache folder set up.
Fixes #15041
2026-06-15 15:53:19 +02:00
Joe Mooring
147f605f7d
markup: Standardize behavior when external converters are missing
...
Closes #14222
2026-06-13 20:19:47 +02:00
hugoreleaser
1f35beb918
releaser: Prepare repository for 0.164.0-DEV
...
[ci skip]
2026-06-11 15:55:44 +00:00
hugoreleaser
2a4fd58818
releaser: Bump versions for release of 0.163.1
...
[ci skip]
2026-06-11 15:34:40 +00:00
dependabot[bot]
93c8c7d345
build(deps): bump golang.org/x/image from 0.41.0 to 0.42.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.41.0 to 0.42.0.
- [Commits](https://github.com/golang/image/compare/v0.41.0...v0.42.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.42.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-11 16:15:56 +02:00
Bjørn Erik Pedersen
95e5e9f4ab
Fix multi --renderSegments merge behavior
...
Fixes #15024
2026-06-11 15:25:43 +02:00
Bjørn Erik Pedersen
a00b5c72ac
security: Normalize integer IPv4 host encodings in http.urls check
...
Canonicalize integer/hex/octal IPv4 hosts to dotted-decimal before
applying the security.http.urls policy so all encodings of an address
are treated alike.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-10 18:53:36 +02:00
Bjørn Erik Pedersen
cf9c8f93ca
Drop symlinks in os.ReadDir, os.ReadFile, os.Stat and os.FileExists
...
Fixes #15019
2026-06-10 18:53:36 +02:00
Bjørn Erik Pedersen
11f09f59fc
Update CI workflow to exclude macOS
...
Removed macOS from the CI test matrix.
2026-06-09 14:34:07 +02:00
Joe Mooring
2602796cf1
commands: Fix convert command
...
Closes #15012
2026-06-09 13:02:26 +02:00
hugoreleaser
72495f9fba
releaser: Prepare repository for 0.164.0-DEV
...
[ci skip]
2026-06-08 14:36:12 +00:00
hugoreleaser
4a9485336a
releaser: Bump versions for release of 0.163.0
...
[ci skip]
2026-06-08 14:13:03 +00:00
anupamojha-eng
1d018ef857
pagesfromdata: Use relative path for content adapter template metrics
...
Fixes #14999
2026-06-08 15:56:47 +02:00
Bjørn Erik Pedersen
121bc6ceb2
ci: Re-add macos-latest to the test matrix
...
I suspect there will be some disk space issue, but let's try.
2026-06-08 15:55:43 +02:00
dependabot[bot]
0d29fc81bb
build(deps): bump github.com/bits-and-blooms/bitset
...
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset ) from 1.24.4 to 1.24.5.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases )
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.24.4...v1.24.5 )
---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
dependency-version: 1.24.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-08 11:32:09 +02:00
dependabot[bot]
bb57404f3d
build(deps): bump github.com/tetratelabs/wazero
...
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero ) from 1.11.1-0.20260521072212-475a1f8f0dc3 to 1.12.0.
- [Release notes](https://github.com/tetratelabs/wazero/releases )
- [Commits](https://github.com/tetratelabs/wazero/commits/v1.12.0 )
---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
dependency-version: 1.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-08 11:31:32 +02:00
Bjørn Erik Pedersen
781fabf4e4
all: Run go fix ./...
2026-06-07 21:20:40 +02:00
Bjørn Erik Pedersen
cf18b827e2
images: Deprecate Imaging.Compression and move it down to webp and avif configs
...
Also clean up and simplify the image config handling.
Closes #14998
2026-06-07 21:20:16 +02:00
Bjørn Erik Pedersen
98ad9b3c03
Only support the latest Go version
...
Which is currently Go 1.26.
Closes #14997
2026-06-07 17:01:04 +02:00
Bjørn Erik Pedersen
ff2903a931
resources/jsconfig: Remove deprecated baseUrl setting
...
baseUrl is deprecated in TypeScript and is no longer required when
paths is set (TypeScript 4.1+).
Fixes #14991
Closes #14996
2026-06-07 13:35:25 +02:00
dependabot[bot]
7d1b1fb33d
build(deps): bump github.com/rogpeppe/go-internal from 1.14.1 to 1.15.0
...
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal ) from 1.14.1 to 1.15.0.
- [Release notes](https://github.com/rogpeppe/go-internal/releases )
- [Commits](https://github.com/rogpeppe/go-internal/compare/v1.14.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: github.com/rogpeppe/go-internal
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-05 19:05:57 +02:00
Bjørn Erik Pedersen
b89e7fe675
page: Add IsBranch and deprecate IsNode
...
IsNode's meaning was murky. Add IsBranch, defined as the set of branch
node kinds (home, section, taxonomy, term), and make IsNode a deprecated
alias for it.
Fixes #11574
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 16:18:57 +02:00
Bjørn Erik Pedersen
e8fefc8388
images: Force cache invalidation for AVIF target
...
Fixes #14990
2026-06-05 16:18:23 +02:00
Bjørn Erik Pedersen
a043d3ec63
images: Add a per-format AVIF hint setting
...
The hint setting controls WebP encoding (preset) and AVIF encoding
(chroma subsampling), but only lived on imaging.webp. Add imaging.avif.hint
so it shows up under the AVIF section in the docs, with the same root-level
backwards compatibility as imaging.webp.hint. Per-image hint now resolves
from the target format.
Fixes #14992
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 16:16:38 +02:00
dependabot[bot]
77a1147056
build(deps): bump github.com/getkin/kin-openapi from 0.138.0 to 0.139.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.138.0 to 0.139.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.138.0...v0.139.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.139.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-06-05 16:16:00 +02:00
Bjørn Erik Pedersen
341f575d2d
images: Make AVIF chroma subsampling content-aware via the hint
...
Encode photo/picture hints (and the default) as YUV420 instead of YUV444,
keeping 444 for text/icon/drawing. Lossless stays 444.
This roughly halves the encoder's peak memory (42 -> 27 MiB/MP) and the
output size, while 444 remains available for sharp-edged content. A
3000x3000 image now needs ~239 MiB to encode, down from ~381 MiB (which
sat right at the 384 MiB WASM cap).
Closes #14987
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 18:54:56 +02:00
Bjørn Erik Pedersen
248241b6e1
Cap AVIF lossy quality at 99
...
Before this commit, lossy compression with 100 quality meant lossless compression, leading to a big gap between 99 and 100.
This commit caps the lossy quality at 99, ensuring that lossy compression is always lossy.
Fixes #14981
2026-06-04 14:42:08 +02:00
Bjørn Erik Pedersen
4e47d95db9
config: Deprecate the glogal imaging quality setting
...
In favour of the new per-image quality setting.
See #14979
2026-06-04 11:07:34 +02:00
Bjørn Erik Pedersen
03b4b54220
images: Make 60 the default quality for AVIF
...
AVIF's quality scale is not perceptually comparable to JPEG/WebP:
libavif anchors its "good" default at 60, where Hugo's universal 75
produced visibly higher quality and larger files. AVIF now defaults to
60 while JPEG and WebP keep 75. An explicit imaging.quality,
imaging.avif.quality or a per-image qNN still wins.
Fixes #14979
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 11:07:34 +02:00
Bjørn Erik Pedersen
79be0532f1
livereload: Disconnect from websocket server on pageswap
...
Fixes #14983
2026-06-04 11:04:39 +02:00
Bjørn Erik Pedersen
0f440460c8
tpl/tplimpl/embedded: Prevent leading newline in sitemap template
...
Fixes #14977
2026-06-04 11:03:03 +02:00
Bjørn Erik Pedersen
4e17421ec2
images: Recover from memory alloc errors in WASM image processors
...
Fixes #14985
2026-06-04 11:01:49 +02:00
Bjørn Erik Pedersen
b01ecd4cd4
images: Add quality setting per image format
...
Allow setting quality per output format via imaging.jpeg.quality,
imaging.webp.quality and imaging.avif.quality. Each falls back to the
global imaging.quality when unset, and a per-image qNN still wins.
Fixes #14957
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-01 20:43:55 +02:00
Joe Mooring
ca68936d61
all: Adjust tests for deprecated link and image render hook settings
2026-06-01 15:52:34 +02:00
Joe Mooring
45c00b7c16
misc: Remove duplicate words in comments
...
Closes #14936
Closes #14950
Closes #14965
2026-05-29 17:54:14 +02:00
Bjørn Erik Pedersen
28d882ab70
Add some PNG to AVIF golden test cases
...
Both 8 and 24 bit PNG to AVIF with vivid colors.
The output looks good to me ...
https://discourse.gohugo.io/t/v0-162-0-avif-image-processing-strips-washes-out-colors-on-vector-graphics/57210
2026-05-29 11:28:27 +02:00
hugoreleaser
b0fd7ee2e1
releaser: Prepare repository for 0.163.0-DEV
...
[ci skip]
2026-05-28 18:03:30 +00:00
hugoreleaser
bba860e3ed
releaser: Bump versions for release of 0.162.1
...
[ci skip]
2026-05-28 17:40:44 +00:00
Joe Mooring
59f35cd985
modules/npm: Fix false stale warning after npm pack
...
Closes #14959
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-28 18:57:41 +02:00
Joe Mooring
21e9868fe2
tpl/tplimpl: Fix X shortcode test
2026-05-28 09:26:45 +02:00
Bjørn Erik Pedersen
2760288c6d
tpl: Skip broken x shortcode test
2026-05-27 21:21:35 +02:00
Bjørn Erik Pedersen
c270975049
Revert "tpl/collections: Make dict return nil when no values are provided"
...
This reverts commit 17a86ef5ed .
Closes #14958
2026-05-27 20:02:55 +02:00
Joe Mooring
ea8b48af64
tpl/time: Fix locale-specific month abbreviations
...
Closes #14948
2026-05-27 12:38:21 +02:00
hugoreleaser
076dfe13d0
releaser: Bump versions for release of 0.162.0
...
[ci skip]
2026-05-26 13:53:44 +00:00
Bjørn Erik Pedersen
e41a06447d
Disallow HTML content by default
...
For security reasons. Enable in security config, e.g.:
```toml
[security]
allowContent = ['.*']
```
2026-05-26 13:57:12 +02:00
Bjørn Erik Pedersen
90d9f812b2
Add image processing support for AVIF
...
The encode/decode is implemented in a WebAssembly module built from a
small C wrapper around libavif. Bundled libraries (statically linked,
compiled with the WASI SDK):
* libavif v1.4.1 (container + codec glue)
* libaom v3.14.1 (AV1 encoder + decoder)
* dav1d 1.5.3 (AV1 decoder)
* libyuv (Chromium pin) for color conversion
* parson for JSON message passing across the wasm boundary
HDR handling on the encoder:
* SDR images are written as BT.709 / sRGB / BT.601 (8-bit).
* 10-bit and up are written as BT.2020 primaries with PQ (SMPTE
ST 2084) transfer and BT.2020-NCL matrix coefficients, signalled
via CICP.
* Adobe-style SDR+gainmap inputs (e.g. Lightroom HDR exports) are
baked into a single true-HDR image in BT.2020/PQ at 10-bit, with
the CLLI (Content Light Level Information) box carried through so
HDR-capable clients can tone-map correctly.
Limitations:
* Animated input (animated WebP/GIF) is collapsed to its first frame
when re-encoded as AVIF; animated AVIF output is not yet supported.
Fixes #7837
2026-05-26 12:13:53 +02:00
Joe Mooring
80e60847fb
config: Preserve intentionally empty maps
...
Closes #14944
2026-05-26 11:50:04 +02:00
Bjørn Erik Pedersen
df5421918a
hugolib: Fix Page.GitInfo for modules with go.mod in a repo subdirectory
...
Map content files using their path relative to the git repo root by
prepending the module's Origin.Subdir to the lookup key.
Fixes #14942
2026-05-26 00:28:22 +02:00
Bjørn Erik Pedersen
aeb9a5cc02
hugolib: Merge existing hugo_stats.json when renderSegments is set
...
With renderSegments only a subset of pages is rendered, so the resulting
hugo_stats.json would no longer contain elements from the excluded pages,
causing tools like Tailwind to strip classes that are actually in use.
Fixes #14939
2026-05-25 17:00:52 +02:00
Bjørn Erik Pedersen
c4bbc2805c
all: Replace RWMutex struct caches with ConcurrentMap
2026-05-24 15:29:47 +02:00
Joe Mooring
d8c70218b7
tpl/tplimpl: Consolidate and improve embedded template integration tests
...
Closes #14932
2026-05-24 15:29:33 +02:00
Bjørn Erik Pedersen
ee4f1acd93
parser: Drop empty sub maps from hugo config output
...
Fixes #14855
2026-05-24 11:52:43 +02:00
Bjørn Erik Pedersen
b6133657e0
markup/highlight: Allow overriding type and code via options
...
Treat type and code as highlighting options in both transform.Highlight
and transform.HighlightCodeBlock. The type option overrides the language
and code overrides the code, so the two functions now share the same
options handling.
transform.Highlight's LANG argument is now optional:
transform.Highlight CODE [LANG] [OPTIONS]
Fixes #11872
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-23 13:12:07 +02:00
Bjørn Erik Pedersen
4bc7caea14
Fix typo in CONTRIBUTING.md
2026-05-23 12:47:00 +02:00
Bjørn Erik Pedersen
7711ba4d0c
Remove note on refactoring contributions
...
Removed note about holding off on big refactoring.
2026-05-23 11:55:27 +02:00
Bjørn Erik Pedersen
d2c821b5c7
Update AI assistance disclosure requirements
...
Clarify expectations for AI contributions and manual verification in pull requests.
2026-05-23 11:54:57 +02:00
dependabot[bot]
4f444c810c
build(deps): bump golang.org/x/net from 0.54.0 to 0.55.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.54.0 to 0.55.0.
- [Commits](https://github.com/golang/net/compare/v0.54.0...v0.55.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.55.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-23 11:43:45 +02:00
dependabot[bot]
fe6c72652f
build(deps): bump golang.org/x/image from 0.40.0 to 0.41.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.40.0 to 0.41.0.
- [Commits](https://github.com/golang/image/compare/v0.40.0...v0.41.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-23 11:43:06 +02:00
Bjørn Erik Pedersen
4ed7600fd6
hugolib: Use AllTranslated in IsTranslated
...
Which makes it faster:
```
│ benchcmp.bench │ feat-speedupistranslated.bench │
│ sec/op │ sec/op vs base │
IsTranslatedOneLanguage-10 996.2n ± ∞ ¹ 685.6n ± ∞ ¹ -31.18% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ benchcmp.bench │ feat-speedupistranslated.bench │
│ B/op │ B/op vs base │
IsTranslatedOneLanguage-10 832.0 ± ∞ ¹ 536.0 ± ∞ ¹ -35.58% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ benchcmp.bench │ feat-speedupistranslated.bench │
│ allocs/op │ allocs/op vs base │
IsTranslatedOneLanguage-10 18.00 ± ∞ ¹ 13.00 ± ∞ ¹ -27.78% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
````
2026-05-22 14:11:50 +02:00
Bjørn Erik Pedersen
cbe4339a5f
tpl: Simplify sitemap template
...
The benefit of my performance motivated construct in 6475d308ec was most likely minimal and not worth the loss of clarity.
See #14912
2026-05-21 21:36:43 +02:00
Bjørn Erik Pedersen
6475d308ec
tpl: Use AllTranslations in sitemap template
...
Closes #14912
Closes #14917
2026-05-21 19:44:23 +02:00
Bjørn Erik Pedersen
67aede4364
tpl/collections: Make dict return nil when no values are provided
2026-05-21 16:03:02 +02:00
Bjørn Erik Pedersen
87f194b249
Sync Go template package to 1.26.3
...
See #14897
2026-05-21 14:28:31 +02:00
Bjørn Erik Pedersen
5f01b0603d
Merge commit 'c23d97904fd31ef745bece57133aa1b9275ec20c'
2026-05-21 12:22:49 +02:00
Bjørn Erik Pedersen
c23d97904f
Squashed 'docs/' changes from 0755fb534d..1f8ddb8a52
...
1f8ddb8a52 content: clarify resources front matter key descriptions
e064ab8528 content: Add deprecation badges to module config page
727ca5563a github: Add push trigger to lint workflow
64dd5c9886 content: Fix typo
c5bc6b6515 github: Fix lint workflow
faec0c3a0a github: Combine linting actions into a single workflow
06112aeaf2 theme: Miscellaneous template edits
75d4902270 theme: Format templates with gotmplfmt
fec2e2a67e content: Document that the language code in a file name must be lowercase
9dbd841ba6 content: Document the src attribute in the Page Resources metadata reference
fd3ffef985 content: Fix "build from source" instructions for Windows
af4c9cd4d7 content: Miscellaneous edits
408d8b2f0a content: Miscellaneous edits
e8804afe6e content: Fix typo
d98276be30 content: Updates for v0.161.0
01b1f8fa12 content: Note merge limitation for slice configuration values
d2b18f0c8d content: Document page matcher usage for cascading values
45e5bd9ab3 content: Update Cloudflare Worker host/deploy guide
b83726b89a content: Document fallback rendering for fenced code blocks
8f1eeb42bc content: Update reference for source code shortcode
e8da56303b content: Add gotmplfmt to list of VS Code extensions
950fabbfd6 content: Update FAQ on feature availability error
6411146d24 content: Update quick start guide
38cc39fd51 content: Add Hugo Shortcodes to list of VS Code extensions
72d98b107b content: Misc updates to get validators to pass
9fb0e1ca35 Add a paragraph about sec boundaries
e6abf5644f content: Improve syntax highlighting documentation
c06193bd1a content: Update go-i18n package reference
ce58fef945 Hugo 0.161.1
c7e0f63385 content: Fix package references
7f15fb3bf9 data: Regen docshelper
7483d53b55 Update HUGO_VERSION to 0.161.0
c4abcdb45f security: Add a bullet point about "pragmatic defaults"
3cd7492862 content: Improve explanation of mount removal in module configurations
4099f07bb9 content: Update GitHub Pages workflow example
a6c9853a58 content: Fix typo
e6f79a938b Update netlify.toml
abda3d6659 content: Update Action versions in GitHub Pages workflow example
55dd288fa9 content: Add GitCMS to front-ends tools list
21081f6d49 content: Remove outdated new-in badges
b2ec263884 content: Update version references
825e0b8ea9 One more CSS var adjustment
85f95a899b Adjust css.Build var docs a little
df48288002 content: Updates for v0.160.0
a82a9b9797 Update HUGO_VERSION to 0.160.0
1155747dc4 content: Improve CSS processing feature description
f6ce893974 content: Add css.Build to features
67b8ed1198 content: Fix typos
0f62a67863 content: Fix typo
dbb42aed4a content: Document the deploy edition
549f30f933 content: De-emphasize references to the extended edition
8f5c9782d4 content: Add Pages CMS to front-ends documentation
b2bfc3af48 Update HUGO_VERSION to 0.159.2
3793156fc5 content: Fix typos
bacd4824ef content: Specify function namespace in example
7f2dc0d40a Regen docs.yml
65a851f731 Update HUGO_VERSION to 0.159.1
ce05fe3fc0 content: Adjust variable references in build script examples
8a04f9fe64 content: Improve hosting build script examples
67962ce05c content: Link to Codeberg Pages 404 handling
fd248f57ed content: Identify esbuild as the foundation for build functions
62f02879fd content: Remove outdated content
553c407f9e content: Miscellaneous corrections
77e2cad088 content: Add new-in badge for usePackageJSON
0746e1e621 Add a page on using npm dependencies in Hugo Modules
8824850f5c Update HUGO_VERSION to 0.159.0
git-subtree-dir: docs
git-subtree-split: 1f8ddb8a5230518f07c50b4b03cba3cae21081c4
2026-05-21 12:22:48 +02:00
Joe Mooring
5d51b82a7e
resources: Fix the :counter placeholder
...
Closes #14921
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-21 09:45:11 +02:00
Bjørn Erik Pedersen
d81e3c29c0
Upgrade to Go 1.26.3
...
Fixes #14897
2026-05-20 11:00:30 +02:00
Bjørn Erik Pedersen
7c65a4dbc0
ci: Check embedded template formatting with gotmplfmt
2026-05-19 16:50:25 +02:00
Bjørn Erik Pedersen
d31a9275c6
tpl: Run gotmplfmt -w .
2026-05-19 16:15:45 +02:00
dependabot[bot]
6a2a03806d
build(deps): bump github.com/getkin/kin-openapi from 0.137.0 to 0.138.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.137.0 to 0.138.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.137.0...v0.138.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.138.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-19 12:34:07 +02:00
dependabot[bot]
cf1de598d9
build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2
...
Bumps [github.com/JohannesKaufmann/html-to-markdown/v2](https://github.com/JohannesKaufmann/html-to-markdown ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases )
- [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v2.5.0...v2.5.1 )
---
updated-dependencies:
- dependency-name: github.com/JohannesKaufmann/html-to-markdown/v2
dependency-version: 2.5.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-19 12:25:06 +02:00
Joe Mooring
c36608c584
markup/goldmark/codeblocks: Always split Chroma options into .Options
...
Closes #14909
2026-05-19 12:23:42 +02:00
Joe Mooring
1e4037cade
docs: Update docs.yaml
2026-05-18 21:24:35 -07:00
Alexandre Vaz
2f361a8e25
hugolib: Allow empty params front matter
...
Treat an empty front matter params key as an empty params map instead of failing while decoding page metadata.
Fixes #14886
2026-05-17 19:59:44 +02:00
Joe Mooring
81d77620c6
commands: Fix import from Jekyll
...
- Look for _config.yml, _config.yaml, or _config.toml
- Fix theme submodule URL
- Fix config filename in the instructions
- Add tests
Closes #14795
Closes #14906
2026-05-17 10:46:40 +02:00
Joe Mooring
5559263326
common/hmaps: Merge slice-valued module config into site config
...
When a module provides a config key whose value is a slice (e.g.
cascade or permalinks), and the site config declares the same key as a
map with only a merge strategy marker (_merge = 'deep'), the types do
not match and Params.merge silently dropped the module's value, leaving
the site with no effective cascade or permalink config from the module.
Fix Params.merge so that when the destination value is an empty Params
(IsZero — only the _merge key is present) and the source value is a
non-Params type, the source value is used provided the user-declared
merge strategy is not 'none'. This honours the explicit _merge
directive regardless of the surrounding shallow-merge context.
Closes #13869
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-15 19:50:42 +02:00
dependabot[bot]
97f990cc4f
build(deps): bump golang.org/x/image from 0.39.0 to 0.40.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/image/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-15 16:00:01 +02:00
Bjørn Erik Pedersen
656fc04035
tpl: Use GetMatch for both local and global image resources
...
See #14062
2026-05-14 20:49:33 +02:00
Bjørn Erik Pedersen
a20cb5b1c0
Revert "markup/tableofcontents: Skip empty TOC levels"
...
This reverts commit 7d4af7a179 .
Closes #14898
2026-05-14 19:46:41 +02:00
dependabot[bot]
b99634e253
build(deps): bump golang.org/x/tools from 0.44.0 to 0.45.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.44.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.45.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-14 15:39:54 +02:00
Bjørn Erik Pedersen
4d775cbe95
tpl/templates: Reject Defer inside partialCached
...
A partial's rendered output (placeholder included) is cached by
partialCached across rebuilds, but BuildState.DeferredExecutions
is reset every stage. On a fast-render rebuild the cached string
replays the placeholder while doDefer is not called this build,
leaving executeDeferredTemplates to panic with "deferred execution
with id ... not found".
Mark the ctx inside IncludeCached's body execution and have Defer
return a clear error if it sees the flag. Catches transitive cases
(partialCached -> partial -> Defer) via ctx propagation. Defer in
baseof.html and in a plain partial is unaffected.
Fixes #13492
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-14 14:17:42 +02:00
dependabot[bot]
fdd977e95d
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3
...
Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2 ) from 1.92.1 to 1.97.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.92.1...service/s3/v1.97.3 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
dependency-version: 1.97.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-13 22:32:44 +02:00
Bjørn Erik Pedersen
ae7bf74b3e
common/hexec: Make NODE_PATH a fallback for ESM bare imports
...
Node's ESM resolver does not consult NODE_PATH (unlike CJS require), so
an ESM postcss.config.js shipped by a Hugo theme fails when loaded from
the module cache: bare imports like `import x from "postcss-import"`
have no node_modules to walk up to.
Install a synchronous resolver hook (module.registerHooks) via
--import=data:... on every Node invocation. On ERR_MODULE_NOT_FOUND for
a bare specifier it resolves the package from each NODE_PATH entry via
createRequire().resolve(). No-op for relative, absolute, URL-scheme and
non-MODULE_NOT_FOUND failures. Synchronous hooks run on the main thread,
so no --allow-worker is needed under the Node permission model.
Fixes #13987
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-13 22:00:04 +02:00
dependabot[bot]
123018de21
build(deps): bump github.com/pelletier/go-toml/v2 from 2.3.0 to 2.3.1
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-version: 2.3.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-13 18:23:27 +02:00
Bjørn Erik Pedersen
ba5d812673
config: Allow repeating the root key in /config files
...
If a non-default-name file in the config folder parses to a map with a
single top-level key matching the file's basename, unwrap it. This lets
TOML/YAML express slice-typed roots (cascade, permalinks), which can't
have a headless top-level array, and also lets users copy-paste docs
examples that include the root container (e.g. params.yaml with a
top-level params: block).
Fixes #12899
Fixes #14882
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-13 18:22:01 +02:00
Bjørn Erik Pedersen
be4a0df3a2
Revise test naming guidelines in AGENTS.md
...
Updated test naming conventions for clarity and documentation.
2026-05-13 17:42:20 +02:00
Bjørn Erik Pedersen
e4cf565c0d
Update AGENTS.md
2026-05-13 17:34:08 +02:00
Alexandre Vaz
9e64953338
js: Return error for missing batch imports
...
A stale or removed resource used by js.Batch could panic while the esbuild import loader read its content during a rebuild. Return the read error through the loader so esbuild reports a normal build error and a later rebuild can recover when the file returns.
Closes #13737
2026-05-13 17:15:14 +02:00
Alexandre Vaz
f0cfc28c00
resources/images: Keep smart crop target size
...
Smartcrop can return a crop rectangle that is smaller than the requested dimensions after prescaling and rounding. Expand that rectangle within the source image bounds before applying Hugo's crop/fill pipeline, so smart crops keep the requested size without stretching the image.
Bump the smart crop cache version for crop/fill only.
Fixes #13688
Co-Authored-By: Joe Mooring <joe.mooring@veriphor.com >
2026-05-13 12:10:44 +02:00
Bjørn Erik Pedersen
16e854a437
testing: Use synctest where relevant
2026-05-13 10:07:26 +02:00
Bjørn Erik Pedersen
f8b5fa09a6
Fix prevention of direct symlink reads in resources.Get
...
* Note for themes, this is only an issue for themes stored locally, e.g. below `themes/...`. Themes mounted as modules from GitHub gets symlinks stripped away.
* Thas was also not an issue for file reading walking one or more directories.
* This is an regression introduced in `v0.123.0`.
2026-05-13 10:06:43 +02:00
Bjørn Erik Pedersen
86fbb0f7a8
security: Validate redirects against security.http.urls
...
A server allowed by security.http.urls could redirect resources.GetRemote
to a host that is not. Re-run the check on each hop via CheckRedirect.
Fixes #14871
2026-05-13 10:06:43 +02:00
Alexandre Vaz
7d4af7a179
markup/tableofcontents: Skip empty TOC levels
...
Fixes #7128
2026-05-12 19:02:23 +02:00
Bjørn Erik Pedersen
28147cb040
Fall back to hugo.buildDate in hugo.BuildDate() in non-vcs builds
...
Fixes #14862
2026-05-11 12:26:13 +02:00
Bjørn Erik Pedersen
db40fada48
agents: Add a note to Ai security researchers
2026-05-11 11:31:17 +02:00
Bjørn Erik Pedersen
b88fa8cc66
deps: Upgrade to Chroma v2.24.1
...
Closes #14839
2026-05-10 20:19:11 +02:00
Alexandre Vaz
88d838a971
commands: Fix github-dark chromastyles
...
Fixes #14831
2026-05-10 20:19:11 +02:00
Bjørn Erik Pedersen
e51e761d9c
css: Make css.Build's file-loader URLs absolute to web context root
...
When CSS imports assets via the file loader (fonts, images), the emitted
URLs were relative to the CSS output directory. That broke when the CSS
was inlined into HTML, since browsers then resolved the URLs against the
page rather than the CSS file.
Set esbuild's PublicPath to the CSS output directory joined with the
site base path so URLs work whether the CSS is published as a file or
inlined.
Fixes #14849
2026-05-10 19:08:08 +02:00
Bjørn Erik Pedersen
7011239205
hugolib: Don't warn about lang/kind/path coming from cascade.params
...
These keys are reserved at the top level of front matter, but are
legitimate user params under cascade.params. Only fire the deprecation
when the key was actually set at the top level of the original front
matter.
Fixes #14848
2026-05-09 11:54:20 +02:00
Rayan Salhab
694906f6f1
markup/goldmark: Unwrap inner HTML for plain code blocks
...
Fixes #14820
2026-05-09 11:41:18 +02:00
Ogulcan Aydogan
d27b9c06bd
tpl/tplimpl: Extend page image lookup to include global resources
...
Fall back to global resources via resources.Get when page resources
don't match for named images in the images front matter parameter.
This aligns get-page-images.html with the existing behavior in
render-image.html, render-link.html, and figure.html.
Fixes #14062
2026-05-08 11:34:44 +02:00
Bjørn Erik Pedersen
62cef3678b
security: Allow hostnames starting with digits in default http.urls
...
Domains like 1password.com and 37signals.com were blocked by the default
allow rule '^https?://[a-z]'. Allow [a-z0-9] for the first hostname char
and add an explicit deny for hosts whose first label is all-digit (IP
literals like 127.0.0.1) to retain the prior SSRF protections.
Fixes #14837
2026-05-01 15:34:20 +02:00
Joe Mooring
ff22c62a32
commands: Improve description of command flags
...
Closes #14817
2026-04-30 21:38:44 +02:00
hugoreleaser
7fd65e16e4
releaser: Prepare repository for 0.162.0-DEV
...
[ci skip]
2026-04-29 14:17:46 +00:00
hugoreleaser
ea8f66a7ce
releaser: Bump versions for release of 0.161.1
...
[ci skip]
2026-04-29 13:56:01 +00:00
Bjørn Erik Pedersen
c4eba92863
resources: Honor Retry-After header in resources.GetRemote retries
...
When the server returns a temporary HTTP error (e.g. 429 or 503)
together with a Retry-After header, use that value as the next sleep
duration instead of the default exponential backoff. The Retry-After
value is also surfaced in the retry-timeout error message.
Fixes #14828
2026-04-29 15:44:16 +02:00
Bjørn Erik Pedersen
8b40a96b6e
warpc: Move to parson.c in https://github.com/kgabis/parson
...
And be specific about which commit we use.
Hugo treat this as an upstream dependency, so we would appreciate that any bugs will be reported and fixed upstream.
See #14823
2026-04-29 13:51:42 +02:00
Bjørn Erik Pedersen
d65af84d15
config/security: Add AllowChildProcess to security.node.permissions
...
Some Linux setups trigger detect-libc's spawnSync('getconf') fallback
when process.report does not expose glibcVersionRuntime, breaking
tailwindcss under the Node permission model. Add AllowChildProcess
mirroring AllowAddons/AllowWorker, default to ["tailwindcss"], and
emit --allow-child-process accordingly.
Fixes #14824
2026-04-29 13:50:37 +02:00
Bjørn Erik Pedersen
454450a647
config/security: Restrict default http.urls "@" deny to userinfo
...
The previous "! @" deny rule rejected any URL containing "@",
including legitimate version-pinned imports such as
https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs .
Tighten it to "! (?i)^https?://[^/?#]*@" so only "@" inside the
authority section (i.e. real userinfo) is blocked.
Fixes #14825
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-29 13:50:37 +02:00
hugoreleaser
2bfcc6b994
releaser: Prepare repository for 0.162.0-DEV
...
[ci skip]
2026-04-28 12:08:01 +00:00
hugoreleaser
98d396c16a
releaser: Bump versions for release of 0.161.0
...
[ci skip]
2026-04-28 11:46:32 +00:00
dependabot[bot]
d4ae662d59
build(deps): bump github.com/getkin/kin-openapi from 0.135.0 to 0.137.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.135.0 to 0.137.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.135.0...v0.137.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.137.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-28 13:40:06 +02:00
dependabot[bot]
9ede5fb9e0
build(deps): bump github.com/mattn/go-isatty from 0.0.21 to 0.0.22
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.21 to 0.0.22.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.21...v0.0.22 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-version: 0.0.22
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-27 20:10:08 +02:00
dependabot[bot]
833a878eef
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.12 to 2.24.13
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.12 to 2.24.13.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.12...v2.24.13 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.13
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-27 20:08:49 +02:00
Bjørn Erik Pedersen
7622dd86ce
css: Support nested hugo:vars/<name> imports
...
Allow CSS variables to be grouped under sub-paths and imported via
@import "hugo:vars/mobile" (or @use for Dart Sass), so callers can pass
nested dicts like:
{{ dict "primary-color" "blue" "mobile" (dict "primary-color" "red") }}
Top-level "hugo:vars" now skips nested map entries instead of emitting
garbage for them.
Fixes #14705
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-27 19:42:50 +02:00
Bjørn Erik Pedersen
0814059bb6
github: Update GitHub actions versions
...
By running:
```
ghat swot --stable 7 -d .github
```
Closes #14810
2026-04-27 19:15:56 +02:00
Joe Mooring
8920d56e95
hugolib: Do not render aliases if the page is not rendered
...
Closes #14807
2026-04-25 18:41:27 +02:00
Joe Mooring
633cc772e0
langs/i18n: Improve default content language fallback
...
The fallback order for translations is now:
1. Current language's locale (e.g., pt-BR → pt-br.toml)
2. Current language's key (e.g., pt → pt.toml)
3. Default language's locale (e.g., es-AR → es-ar.toml) ← new
4. Default language's key (e.g., es → es.toml)
Closes #14243
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-25 10:43:37 +02:00
Bjørn Erik Pedersen
90d8bf34ae
Replace deprecated .Site.Sites/.Page.Sites with hugo.Sites intests
2026-04-24 19:02:46 +02:00
Bjørn Erik Pedersen
4c40c6d5ca
helpers: Remove unused code
2026-04-23 20:05:09 +02:00
Bjørn Erik Pedersen
d2594db670
common/constants: Remove unused consts
2026-04-23 20:05:09 +02:00
Bjørn Erik Pedersen
ab2de51e07
common/paths: Remove unused code
...
Identified with:
```
punused "common/paths/**.go"
````
2026-04-23 20:05:09 +02:00
Joe Mooring
72b85d5f9c
langs/i18n: Fix translation lookup when using language variants
...
Closes #7982
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-23 18:47:12 +02:00
Joe Mooring
75f61832c2
tests: Update Ruby setup action to v1.305.0
2026-04-23 18:46:49 +02:00
dependabot[bot]
4c03129fcf
build(deps): bump github.com/magefile/mage from 1.17.1 to 1.17.2
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/magefile/mage/releases )
- [Commits](https://github.com/magefile/mage/compare/v1.17.1...v1.17.2 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-version: 1.17.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-23 15:02:42 +02:00
Bjørn Erik Pedersen
080970bc6b
deps: Upgrade github.com/bep/imagemeta v0.17.1 => v0.17.2
2026-04-23 15:02:28 +02:00
Joe Mooring
1b7495bc49
langs: Use Language.Locale as primary localization key
...
Localization now uses Language.Locale as the golocales lookup key,
falling back to Language.Lang, then defaultContentLanguage, then "en".
Closes #9109
2026-04-22 22:41:51 +02:00
Bjørn Erik Pedersen
79f030be5b
config/security: Add "! " negation to Whitelist, harden default http.urls
...
Whitelist now treats any pattern prefixed with "! " (the same negation
prefix used by hglob/predicate) as a deny rule. Deny matches take
precedence over allow, and a whitelist made up exclusively of deny
rules implicitly allows everything it does not deny.
The default security.http.urls now reads:
urls = ['(?i)^https?://[a-z]', '! (?i)localhost', '! @']
i.e. allow URLs whose host starts with a letter (the common
"https://example.com " shape), deny anything that looks like localhost,
and deny URLs with userinfo to foil "http://user@127.0.0.1/ " bypasses.
Public IP literals are collateral blocks; users who need them (or their
own private hosts) override security.http.urls as before, mixing allow
and deny rules with the same "! " prefix, e.g.
[security.http]
urls = ['.*', '! ^https?://evil\.example\.com']
Fixes #14792
2026-04-22 20:15:19 +02:00
dependabot[bot]
896bc89ab8
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront ( #14789 )
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.59.0 to 1.61.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.59.0...service/s3/v1.61.1 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.61.1
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>
2026-04-22 15:51:30 +02:00
dependabot[bot]
100dde53ad
build(deps): bump github.com/mattn/go-isatty from 0.0.20 to 0.0.21 ( #14788 )
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.20 to 0.0.21.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.20...v0.0.21 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-version: 0.0.21
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>
2026-04-22 15:51:14 +02:00
dependabot[bot]
bdebb79705
build(deps): bump github.com/bep/mclib ( #14787 )
...
Bumps [github.com/bep/mclib](https://github.com/bep/mclib ) from 1.20400.20402 to 1.20401.20400.
- [Release notes](https://github.com/bep/mclib/releases )
- [Commits](https://github.com/bep/mclib/compare/v1.20400.20402...v1.20401.20400 )
---
updated-dependencies:
- dependency-name: github.com/bep/mclib
dependency-version: 1.20401.20400
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>
2026-04-22 15:51:00 +02:00
Bjørn Erik Pedersen
a54c398b93
Harden Node tool execution with --permission flag
...
Add security.node.permissions config to run Node tools (PostCSS, Babel,
TailwindCSS) under Node's permission model, restricting file system access
to the working directory by default.
The binary resolution is simplified to node_modules/.bin → PATH (npx removed).
For both locations, the actual JS entry point is resolved via symlinks (macOS/Linux)
or by parsing npm wrapper scripts (Windows .cmd), then executed as
"node --permission --allow-fs-read=<path> --allow-fs-write=<path> <script>".
Users can opt out by removing "node" from security.exec.allow.
Closes #7287
2026-04-22 15:47:34 +02:00
Bjørn Erik Pedersen
f5fce935e7
tpl/collections: Honor the Eqer interface in where comparisons
...
The where function previously fell through to a no-op when comparing
two values whose kinds were not handled by the primitive type switches
(e.g. two Page interface values). This made `where pages "Parent" $page`
return an empty list, while the equivalent `range pages` + `if eq` worked.
Use compare.Eqer for equality operators when either side implements it,
matching the behavior of the eq/ne template funcs.
Fixes #14777
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-20 19:45:06 +02:00
dependabot[bot]
52123ae23f
build(deps): bump google.golang.org/api from 0.267.0 to 0.276.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.267.0 to 0.276.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.267.0...v0.276.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.276.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-20 19:12:24 +02:00
dependabot[bot]
38b8afdc90
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.41.5 to 1.41.6
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.41.5 to 1.41.6.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.41.5...v1.41.6 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.41.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-20 19:12:13 +02:00
Bjørn Erik Pedersen
4169c1f70f
modules: Ignore non-require blocks in go.mod rewrite
...
The Go 1.24 tool directive uses single-token entries inside a
tool ( ... ) block. The previous splitter treated any tab-indented
line as a require entry, causing an index out of range panic when
running hugo mod tidy on a module with a tool block.
Track the require block state explicitly so other blocks (tool,
replace, exclude, retract) are left untouched.
Fixes #14783
2026-04-20 19:11:41 +02:00
Bjørn Erik Pedersen
7574e35b40
Replace the concurrent map with an identical upstream version
2026-04-20 18:33:59 +02:00
dependabot[bot]
927666005c
build(deps): bump github.com/getkin/kin-openapi from 0.134.0 to 0.135.0 ( #14781 )
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.134.0 to 0.135.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.134.0...v0.135.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.135.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>
2026-04-20 17:45:53 +02:00
dependabot[bot]
790f4084a1
build(deps): bump github.com/bep/goportabletext from 0.1.0 to 0.2.0 ( #14779 )
...
Bumps [github.com/bep/goportabletext](https://github.com/bep/goportabletext ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/bep/goportabletext/releases )
- [Commits](https://github.com/bep/goportabletext/compare/v0.1.0...v0.2.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/goportabletext
dependency-version: 0.2.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>
2026-04-20 17:45:36 +02:00
dependabot[bot]
de6955bab3
build(deps): bump golang.org/x/image from 0.38.0 to 0.39.0 ( #14780 )
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.38.0 to 0.39.0.
- [Commits](https://github.com/golang/image/compare/v0.38.0...v0.39.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.39.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>
2026-04-20 15:19:28 +02:00
Bjørn Erik Pedersen
a77bd527fd
deps: Upgrade github.com/bep/imagemeta v0.17.0 => v0.17.1 ( #14775 )
...
Close #14758
2026-04-20 10:35:22 +02:00
Bjørn Erik Pedersen
017a7cd63a
Add slice-based permalinks config with PageMatcher target
...
Closes #14744
Clses #4641
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-19 19:45:45 +02:00
Bjørn Erik Pedersen
e3413d927f
commands: Add missing import
2026-04-19 15:35:46 +02:00
Bjørn Erik Pedersen
b01cc14703
Revert "common/hugo: Deprecate extended and extended_withdeploy editions"
...
This reverts commit a17bdbc5fa .
Close #14771
2026-04-19 11:15:49 +02:00
Bjørn Erik Pedersen
8ee19ff9a3
Adjust the SECURITY.md slightly
2026-04-18 23:05:27 +02:00
Joe Mooring
6436deb3e1
create: Fix non-deterministic conflict detection in hugo new content
...
The contentInclusionFilter used strings.Contains to match filenames
against the target path. Because strings.Contains is a substring check,
a directory entry like "content/about" matches "content/about.md",
causing unrelated files to be pulled into the mini-build. Whether the
conflict was then detected depended on whether the filesystem walker
delivered a directory entry or a full file path.
Also adds an upfront check for the directory-conflict case, since
a corrected filter alone would allow about.md to be created alongside
an existing about/ directory.
Closes #12602
Closes #12786
Closes #14112
Closes #14769
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-18 15:06:28 +02:00
dependabot[bot]
547ab29ced
build(deps): bump golang.org/x/tools from 0.43.0 to 0.44.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.43.0...v0.44.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-18 15:03:47 +02:00
Joe Mooring
0d58e4286f
resources/page: Add passing test for Issue #14325
2026-04-18 15:02:47 +02:00
Bjørn Erik Pedersen
bbb42b5a6a
agents: Add a note about having the issue ID in test names
2026-04-17 21:59:11 +02:00
Joe Mooring
1eea9fba0b
commands: Fix environment isolation for configuration settings
...
Closes #14763
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-17 09:40:23 +02:00
dependabot[bot]
9a5c7e0d24
build(deps): bump github.com/evanw/esbuild from 0.27.4 to 0.28.0
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.27.4 to 0.28.0.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.4...v0.28.0 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.28.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-16 19:56:49 +02:00
dependabot[bot]
6613b08eb6
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.41.1 to 1.41.5
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.41.1 to 1.41.5.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.41.1...v1.41.5 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.41.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-16 19:55:55 +02:00
dependabot[bot]
582c26ef42
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.3.0
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.2.4 to 2.3.0.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.2.4...v2.3.0 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-version: 2.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-16 19:55:18 +02:00
dependabot[bot]
a4f2a8a579
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.11 to 2.24.12
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.11 to 2.24.12.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.11...v2.24.12 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.12
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-16 13:57:04 +02:00
Bjørn Erik Pedersen
8d6145f3c3
Fix filename dimension identifiers (_role_X_, _version_X_) to replace mount config
...
Filename identifiers for roles and versions were parsed but never applied
to the SitesMatrix. Now they replace the mount's configuration for that
dimension, matching how language identifiers already worked.
Fixes #14756
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-15 20:34:34 +02:00
Bjørn Erik Pedersen
ce2a156a4e
Add a more flexible filename identifier scheme that also allows setting roles and versions ( #14754 )
...
Fixes #14750
2026-04-15 16:44:19 +02:00
Bjørn Erik Pedersen
9747724222
Fix it so we never auto-fallback to page resources in other roles/versions
...
This is some logic that's left behind from when we had only one dimension (language) where the common case would be to have one resource set (e.g. an image) and many content translation.
After this commit:
* For sites matrix defined in the content filename (e.g. data.en.js) or in its mount definition, we may use that as a fallback for e.g. German languages if we don't find a better match.
* For content adapters, this is not relevant: Here you must be explicit about this.
* We never auto-fallback on resources from a role/version to another.
* When a page bundle spans multiple roles (e.g. via roles = "*"), we clone its resources to all roles so each gets role-specific paths.
Fixes #14749
Fixes #14752
2026-04-14 16:33:38 +02:00
Joe Mooring
a17bdbc5fa
common/hugo: Deprecate extended and extended_withdeploy editions
...
Closes #14696
2026-04-13 23:18:23 +02:00
Bjørn Erik Pedersen
8f94d65cac
parser/pageparser: Add a parser fuzz test
...
Ran it for 40 minutes on my MacBook Pro, and it found no issues.
2026-04-09 12:25:19 +02:00
hugoreleaser
d6bc8165e6
releaser: Bump versions for release of 0.160.1
...
[ci skip]
2026-04-08 14:02:42 +00:00
Bjørn Erik Pedersen
8b00030b34
Fix panic when passthrough elements are used in headings
...
Fixes #14677
Co-Authored-By: xingzihai <1315258019@qq.com >
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-08 15:03:05 +02:00
Bjørn Erik Pedersen
c48551677c
Fix panic on edit of legacy mapped template names that's also a valid path in the new setup
...
This mapping was added in Hugo `v0.146.0`.
Fixes #14740
2026-04-08 13:19:45 +02:00
Bjørn Erik Pedersen
161d0d4757
Fix RenderShortcodes leaking context markers when indented
...
Strip leading whitespace from Hugo context marker lines before
Goldmark parsing to prevent them from being treated as indented
code blocks.
Fixes #12457
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-07 22:05:42 +02:00
Bjørn Erik Pedersen
45e4596630
Strip nested page context markers from standalone RenderShortcodes
...
Fixes #14732
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-07 19:27:40 +02:00
Bjørn Erik Pedersen
58927aa14a
Rename deprecated cascade._target to cascade.target in tests
2026-04-07 13:58:06 +02:00
Bjørn Erik Pedersen
ce009e3aa9
Fix auto-creation of root sections in multilingual sites
...
Fixes #14681
Co-authored-by: Joe Mooring <joe@mooring.com >
2026-04-07 13:58:06 +02:00
Christopher Hicks
0755872424
readme: Fix links
...
* docs: fix broken links in top README.md
* point at the docs site instead of github
* fix typo
Co-authored-by: Joe Mooring <joe@mooring.com >
---------
Co-authored-by: Joe Mooring <joe@mooring.com >
2026-04-06 08:48:45 -07:00
hugoreleaser
6b5554bac9
releaser: Prepare repository for 0.161.0-DEV
...
[ci skip]
2026-04-04 13:53:16 +00:00
hugoreleaser
652fc5acdd
releaser: Bump versions for release of 0.160.0
...
[ci skip]
2026-04-04 13:32:34 +00:00
dependabot[bot]
bf6e35a755
build(deps): bump github.com/magefile/mage from 1.16.1 to 1.17.1
...
Bumps [github.com/magefile/mage](https://github.com/magefile/mage ) from 1.16.1 to 1.17.1.
- [Release notes](https://github.com/magefile/mage/releases )
- [Commits](https://github.com/magefile/mage/compare/v1.16.1...v1.17.1 )
---
updated-dependencies:
- dependency-name: github.com/magefile/mage
dependency-version: 1.17.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-04 14:56:33 +02:00
Bjørn Erik Pedersen
4e91e14cb0
Fix some recently introduced Position issues
...
Fixes #14710
2026-04-04 14:53:20 +02:00
Bjørn Erik Pedersen
dc9b51d2e2
markup/goldmark: Fix double-escaping of ampersands in link URLs
...
The XSS fix in 479fe6c65 accidentally called util.EscapeHTML twice
on link destinations, causing `&` to render as `&amp;` instead
of `&`.
Fixes #14715
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-04 14:52:29 +02:00
Bjørn Erik Pedersen
481baa0896
all: Replace NewIntegrationTestBuilder with Test/TestE/TestRunning
2026-04-03 21:17:45 +02:00
Bjørn Erik Pedersen
43aad7118d
tpl: Fix stray quotes from partial decorator in script context
...
Use template.JS for the falsy return value of _PopPartialDecorator
so Go's html/template JS escaper doesn't wrap the empty string in
quotes inside <script> tags.
Fixes #14711
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-03 18:30:26 +02:00
Joe Mooring
9f1f1be0be
readme: Revise edition descriptions and installation instructions
2026-04-03 11:54:31 +02:00
dependabot[bot]
0eda24e65f
build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.3 to 4.1.4
...
Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose ) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/go-jose/go-jose/releases )
- [Commits](https://github.com/go-jose/go-jose/compare/v4.1.3...v4.1.4 )
---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
dependency-version: 4.1.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-03 11:32:24 +02:00
Bjørn Erik Pedersen
5d09b5e32a
tpl/css: Support @import "hugo:vars" for CSS custom properties in css.Build
...
Closes #14699
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-02 21:02:13 +02:00
Bjørn Erik Pedersen
303e443ea7
Improve and extend .Position handling in Goldmark render hooks
...
Goldmark v1.8 reports source positions in render hooks.
Use this to build a source map that translates Goldmark positions back to
the original content source.
Now all render hooks' context object implenent the `BaseContext` interface:
```go
type BaseContext interface {
Position() Position
Page() any
PageInner() any
Ordinal() int
}
```
Closes #14663
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-02 19:30:28 +02:00
dependabot[bot]
beb57a6839
build(deps): bump golang.org/x/image from 0.37.0 to 0.38.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/image/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-01 19:16:47 +02:00
Bjørn Erik Pedersen
638262cec3
markup/goldmark: Clean up test
2026-04-01 17:05:08 +02:00
hugoreleaser
397980aab3
releaser: Prepare repository for 0.160.0-DEV
...
[ci skip]
2026-04-01 13:21:05 +00:00
hugoreleaser
5f4646acaa
releaser: Bump versions for release of 0.159.2
...
[ci skip]
2026-04-01 12:59:20 +00:00
Bjørn Erik Pedersen
479fe6c654
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.
2026-04-01 14:23:24 +02:00
Bjørn Erik Pedersen
81a5cdca07
releaser: Add standard withdeploy release assets
...
Closes #14687
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-01 11:01:53 +02:00
Joe Mooring
df520e3150
resources/page: Fix shared reader in Source.ValueAsOpenReadSeekCloser
...
Closes #14684
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-28 21:32:28 +01:00
Bjørn Erik Pedersen
b55d452e46
testing: Simplify line ending handling in tests
2026-03-28 19:48:28 +01:00
Joe Mooring
ea7eac6558
readme: Update Go version to 1.25.0
2026-03-27 08:43:24 -07:00
hugoreleaser
458ebdd448
releaser: Prepare repository for 0.160.0-DEV
...
[ci skip]
2026-03-26 10:13:11 +00:00
hugoreleaser
86c7d3afac
releaser: Bump versions for release of 0.159.1
...
[ci skip]
2026-03-26 09:54:15 +00:00
Bjørn Erik Pedersen
42289d76f9
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
2026-03-26 10:49:53 +01:00
Bjørn Erik Pedersen
0c013c2326
Adjust depreceated syntax in tests
2026-03-24 11:07:01 +01:00
hugoreleaser
bd071d78a5
releaser: Prepare repository for 0.160.0-DEV
...
[ci skip]
2026-03-23 18:34:59 +00:00
hugoreleaser
2ed7d193cf
releaser: Bump versions for release of 0.159.0
...
[ci skip]
2026-03-23 18:16:59 +00:00
Bjørn Erik Pedersen
d2043cfae5
docs: Update docs.yaml
2026-03-23 18:27:14 +01:00
Bjørn Erik Pedersen
5997b71db6
Merge commit 'e7afabb927a79b179ae57013fd5f49e32829671e'
2026-03-23 18:25:55 +01:00
Bjørn Erik Pedersen
e7afabb927
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
2026-03-23 18:21:25 +01:00
Bjørn Erik Pedersen
4f3c39890e
commands: Update docs linke to Node.js docs
2026-03-23 18:13:50 +01:00
eason
807cae1df1
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 >
2026-03-23 17:50:15 +01:00
Alexandre Vaz
c4fb61d9df
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
2026-03-23 17:49:13 +01:00
Bjørn Erik Pedersen
d88a29e002
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 >
2026-03-23 16:00:50 +01:00
dependabot[bot]
3ff9b7f89f
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>
2026-03-21 21:19:50 +01:00
Tay
9dd9c76027
commands: Close cpu profile file when StartCPUProfile fails
2026-03-21 21:17:12 +01:00
Bjørn Erik Pedersen
a8fca598e6
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.
2026-03-21 19:09:14 +01:00
Bjørn Erik Pedersen
182b104571
Replace deprecated excludeFiles and includeFiles with files in tests
2026-03-21 16:59:13 +01:00
dependabot[bot]
be93ccd304
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 >
2026-03-20 11:37:30 +01:00
dependabot[bot]
2669bca6fd
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 >
2026-03-19 20:39:12 +01:00
dependabot[bot]
753d447f11
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 >
2026-03-19 20:38:51 +01:00
dependabot[bot]
4f39d724fe
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 >
2026-03-19 20:21:44 +01:00
Joe Mooring
eaf4c7515a
tpl/tplimpl: Fix Vimeo shortcode test
...
Closes #14649
2026-03-19 20:21:21 +01:00
Bjørn Erik Pedersen
3315a86d67
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.
2026-03-19 17:28:20 +01:00
Bjørn Erik Pedersen
38244842e0
Remove 'bep' from PR user logins skip list
...
To test it and see why it fails.
2026-03-19 17:02:16 +01:00
Bjørn Erik Pedersen
7813c5c89d
tpl/tplimpl: Comment out the Vimeo simple shortcode tests
...
See #14649
2026-03-19 13:52:36 +01:00
Bjørn Erik Pedersen
eb11c3d0bc
Replace deprecated :filename with :contentbasename in the permalinks test
2026-03-18 08:47:26 +01:00
hugoreleaser
fa8658111f
releaser: Prepare repository for 0.159.0-DEV
...
[ci skip]
2026-03-16 17:56:18 +00:00
hugoreleaser
f41be7959a
releaser: Bump versions for release of 0.158.0
...
[ci skip]
2026-03-16 17:42:04 +00:00
Bjørn Erik Pedersen
0e46a97e8a
deps: Upgrade github.com/evanw/esbuild v0.27.3 => v0.27.4
2026-03-16 18:39:08 +01:00
dependabot[bot]
c27d9e8fcf
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 >
2026-03-16 11:59:42 +01:00
dependabot[bot]
098eac59a9
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 >
2026-03-16 11:56:42 +01:00
Bjørn Erik Pedersen
3c980c072e
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
2026-03-15 18:32:41 +01:00
Joe Mooring
404ac00001
create/skeletons: Use css.Build in theme skeleton
...
Closes #14626
2026-03-15 16:51:24 +01:00
Bjørn Erik Pedersen
06fcb72421
tpl/css: Add a test case for rebuilds on CSS options changes
2026-03-15 11:09:02 +01:00
Joe Mooring
9b5f1d491d
hugolib: Allow regular pages to cascade to self
...
Closes #14627
2026-03-15 10:17:45 +01:00
dependabot[bot]
87f8de8c7a
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 >
2026-03-14 16:06:09 +01:00
dependabot[bot]
67ef6c68de
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 >
2026-03-14 16:05:19 +01:00
Bjørn Erik Pedersen
623722bb07
tpl/css: Allow the user to override single loader entries
...
Fixes #14623
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2026-03-14 15:17:21 +01:00
Bjørn Erik Pedersen
e431f90bc6
tpl/css: Fix external source maps
...
Fixes #14620
2026-03-14 12:08:18 +01:00
Bjørn Erik Pedersen
a7cbcf15f0
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
2026-03-13 20:24:32 +01:00
Joe Mooring
59e0446fe5
hugolib: Fix server no watch
...
Closes #14615
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-13 16:28:37 +01:00
Joe Mooring
36cdb2c789
internal/js: Add default mainFields for CSS builds
...
Closes #14614
2026-03-13 08:33:17 +01:00
Bjørn Erik Pedersen
3e3b849cc7
Add css.Build
...
Fixes #14609
Fixes #14613
2026-03-12 13:32:40 +01:00
Bjørn Erik Pedersen
1f578f160c
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
2026-03-11 12:36:13 +01:00
Bjørn Erik Pedersen
842d8f1052
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 >
2026-03-10 19:45:14 +01:00
Bjørn Erik Pedersen
c47ec23342
resources: Use full path for Exif etc. decoding error/warning messages
...
Fixes #12693
2026-03-08 23:03:57 +01:00
Bjørn Erik Pedersen
4652ae4a44
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.
2026-03-08 21:43:37 +01:00
Bjørn Erik Pedersen
4eafd9eb7b
tpl/tplimpl: Prefer early suffixes when media type matches
...
Fixes #13877
Close #14601
Co-Authored-By: Joe Mooring <joe.mooring@veriphor.com >
2026-03-08 21:42:36 +01:00
Joe Mooring
13a95b9c01
tpl/strings: Add strings.ReplacePairs function
...
Closes #14594
2026-03-07 20:21:02 +01:00
Bjørn Erik Pedersen
e3108225bf
all: Run go fix ./...
2026-03-07 18:30:42 +01:00
Bjørn Erik Pedersen
c9b88e4d15
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
2026-03-07 15:30:07 +01:00
Bjørn Erik Pedersen
54c804876a
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.
2026-03-07 12:48:15 +01:00
Bjørn Erik Pedersen
157bfddda5
testing: Make commands tests pass in Go 1.26.1
2026-03-06 12:23:25 +01:00
Joe Mooring
d4f2122dea
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 >
2026-03-04 11:45:52 +01:00
Bjørn Erik Pedersen
991d2f9aba
Replace Exif with Meta in tests
2026-03-04 11:38:28 +01:00
dependabot[bot]
b29c2f7ade
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>
2026-03-02 13:01:37 +01:00
dependabot[bot]
e91d191155
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>
2026-03-02 12:57:29 +01:00
dependabot[bot]
a8a54bd020
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>
2026-03-02 12:57:10 +01:00
Bjørn Erik Pedersen
f797f84902
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 >
2026-02-27 12:05:13 +01:00
Joe Mooring
e8577771c3
resources: Improve getImageOps error message
...
Closes #14571
2026-02-26 22:20:08 +01:00
Bjørn Erik Pedersen
44dc3847f4
resources/images: Add IsImageResourceWithMeta etc. tests for bmp and gif
...
Closes #14568
2026-02-26 16:49:11 +01:00
hugoreleaser
5594b28229
releaser: Prepare repository for 0.158.0-DEV
...
[ci skip]
2026-02-25 16:57:59 +00:00
hugoreleaser
7747abbb31
releaser: Bump versions for release of 0.157.0
...
[ci skip]
2026-02-25 16:38:33 +00:00
Bjørn Erik Pedersen
3dff7c8c7a
Fix menu pageRef resolution in multidimensional setups
...
Fixes #14566
2026-02-25 17:35:20 +01:00
Bjørn Erik Pedersen
d98cd4aecf
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
2026-02-25 14:26:50 +01:00
Joe Mooring
68059972e8
commands: Update link to highlighting style examples
...
Closes #14556
2026-02-25 12:57:25 +01:00
Bjørn Erik Pedersen
8e28668b09
docs: Regen and fix the imaging docshelper output
...
Fixes #14562
2026-02-25 10:43:58 +01:00
Bjørn Erik Pedersen
a3ea9cd18f
Merge commit '0c2fa2460f485e0eca564dcccf36d34538374922'
2026-02-25 10:29:05 +01:00
Bjørn Erik Pedersen
0c2fa2460f
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
2026-02-24 21:38:42 +01:00
Bjørn Erik Pedersen
49bfb1070b
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
2026-02-24 19:45:12 +01:00
Joe Mooring
b7203bbb3a
resources/images: Adjust WebP processing defaults
...
defaultWebpUseSharpYuv: true => false
defaultWebpMethod: 4 => 2
2026-02-24 10:02:48 +01:00
Bjørn Erik Pedersen
dfece5b674
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
2026-02-23 17:43:17 +01:00
Paul van Brouwershaven
2d691c7e47
Add per-request timeout option to resources.GetRemote
2026-02-23 16:38:13 +01:00
Bjørn Erik Pedersen
b96d58a144
Update AI Watchdog action version in workflow
2026-02-23 15:05:07 +01:00
dependabot[bot]
9869e71aaa
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 >
2026-02-23 12:23:59 +01:00
dependabot[bot]
8f47fe8c87
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 >
2026-02-23 12:23:01 +01:00
Bjørn Erik Pedersen
65b4287c68
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 >
2026-02-23 12:22:39 +01:00
Bjørn Erik Pedersen
cc338a9d48
Add guideline for brevity in code and comments
...
Added a guideline emphasizing brevity in code, comments, and commit messages.
2026-02-21 18:53:41 +01:00
Bjørn Erik Pedersen
3850881f2a
modules: Include JSON error info from go mod download in error messages
...
Fixes #14543
2026-02-21 17:21:08 +01:00
Bjørn Erik Pedersen
a18bec1123
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 >
2026-02-20 21:23:20 +01:00
hugoreleaser
3c9b41f9ec
releaser: Prepare repository for 0.157.0-DEV
...
[ci skip]
2026-02-18 16:58:30 +00:00
hugoreleaser
9d914726de
releaser: Bump versions for release of 0.156.0
...
[ci skip]
2026-02-18 16:39:55 +00:00
Bjørn Erik Pedersen
86aa62524f
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 >
2026-02-18 14:34:47 +01:00
dependabot[bot]
d8ec0eeeaf
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 >
2026-02-18 10:54:40 +01:00
Joe Mooring
4148eded9c
hugolib: Add Page.Sites to Site.Sites deprecation notice
...
Closes #14532
2026-02-17 20:33:18 +01:00
Bjørn Erik Pedersen
bba2aed352
hugolib: Simplify sites collection
2026-02-17 19:10:47 +01:00
Bjørn Erik Pedersen
29b8e17d29
hugolib: Adjust hugo.Sites.Default
...
Fixes #14531
2026-02-17 19:10:47 +01:00
Bjørn Erik Pedersen
3c823408ee
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.
2026-02-17 19:10:47 +01:00
Bjørn Erik Pedersen
3f9d0ad2b6
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 >
2026-02-16 22:34:29 +01:00
Joe Mooring
ab62320d6b
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 >
2026-02-16 18:57:26 +01:00
dependabot[bot]
21be4afd49
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 >
2026-02-16 17:48:37 +01:00
khayyam
32027e50a1
paths: Fix handling of _ as a path name
...
Fixes #14344
2026-02-16 17:32:45 +01:00
Bjørn Erik Pedersen
8d19f5a78b
output: Remove unused method
...
Closes #14522
2026-02-16 11:00:33 +01:00
dependabot[bot]
e549016bc5
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 >
2026-02-16 10:56:28 +01:00
dependabot[bot]
a392906b55
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 >
2026-02-16 10:55:54 +01:00
Joe Mooring
e6f01bb464
snap: Stop building for ppc64el and s390x
...
Closes #14519
2026-02-14 19:59:26 +01:00
Joe Mooring
498431d641
docs: Fix lineNos default value in docs.yaml
2026-02-14 19:15:02 +01:00
Bjørn Erik Pedersen
773664b812
hugolib: Fix term title when taxonomy name contains spaces
...
The pluralTreeKey is normalized (spaces become hyphens), but the
unnormalized path preserves spaces. Use the plural name directly
for prefix trimming on the unnormalized path.
Fixes #13422
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 19:14:40 +01:00
Bjørn Erik Pedersen
7729473500
Update AI assistance guidelines in CONTRIBUTING.md
...
Clarified expectations for AI contributions from non-maintainers.
2026-02-14 18:21:47 +01:00
Bjørn Erik Pedersen
47e39af2cf
tpl/collections: Speed up where and sort performance
...
```bash
goos: darwin
goarch: arm64
pkg: github.com/gohugoio/hugo/tpl/collections
cpu: Apple M1 Pro
│ master.bench │ fix-whereperfalloc.bench │
│ sec/op │ sec/op vs base │
WhereOps/eq-10 139.62µ ± 3% 66.04µ ± 2% -52.70% (p=0.002 n=6)
WhereOps/ne-10 139.54µ ± 1% 65.68µ ± 2% -52.93% (p=0.002 n=6)
WhereOps/like-10 179.8µ ± 3% 106.7µ ± 1% -40.66% (p=0.002 n=6)
WhereSliceOfStructPointersWithMethod-10 350.7µ ± 1% 252.2µ ± 2% -28.09% (p=0.002 n=6)
WhereAndSortPages/Where-10 120.93µ ± 1% 81.69µ ± 1% -32.45% (p=0.002 n=6)
WhereAndSortPages/Sort-10 1.608m ± 1% 1.165m ± 1% -27.52% (p=0.002 n=6)
geomean 117.2µ 149.4µ -40.03% ¹
│ master.bench │ fix-whereperfalloc.bench │
│ B/op │ B/op vs base │
WhereOps/eq-10 52.18Ki ± 0% 36.62Ki ± 0% -29.82% (p=0.002 n=6)
WhereOps/ne-10 52.18Ki ± 0% 36.62Ki ± 0% -29.82% (p=0.002 n=6)
WhereOps/like-10 52.20Ki ± 0% 36.63Ki ± 0% -29.83% (p=0.002 n=6)
WhereSliceOfStructPointersWithMethod-10 64.52Ki ± 0% 64.59Ki ± 0% +0.12% (p=0.002 n=6)
WhereAndSortPages/Where-10 21.05Ki ± 0% 21.11Ki ± 0% +0.30% (p=0.002 n=6)
WhereAndSortPages/Sort-10 591.15Ki ± 0% 51.82Ki ± 0% -91.23% (p=0.002 n=6)
geomean 7.690Ki 38.91Ki -44.13% ¹
│ master.bench │ fix-whereperfalloc.bench │
│ allocs/op │ allocs/op vs base │
WhereOps/eq-10 2.515k ± 0% 1.517k ± 0% -39.68% (p=0.002 n=6)
WhereOps/ne-10 2.515k ± 0% 1.517k ± 0% -39.68% (p=0.002 n=6)
WhereOps/like-10 2.515k ± 0% 1.517k ± 0% -39.68% (p=0.002 n=6)
WhereSliceOfStructPointersWithMethod-10 4.503k ± 0% 4.504k ± 0% +0.02% (p=0.002 n=6)
WhereAndSortPages/Where-10 1.029k ± 0% 1.030k ± 0% +0.10% (p=0.002 n=6)
WhereAndSortPages/Sort-10 20.736k ± 0% 1.012k ± 0% -95.12% (p=0.002 n=6)
geomean 358.5 1.594k -53.04% ¹
```
2026-02-14 16:33:15 +01:00
Bjørn Erik Pedersen
4a641d1594
tpl/internal: Replace deprecated parser.ParseDir and doc.New
...
Replace parser.ParseDir (deprecated since Go 1.25) with manual
file iteration using parser.ParseFile, and replace doc.New with
doc.NewFromFiles.
Fixes #14513
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-14 14:49:09 +01:00
Bjørn Erik Pedersen
8b7b6af92c
docs: Regenerate docs.yaml
...
Mostly so I can test #14513
2026-02-14 12:15:58 +01:00
Bjørn Erik Pedersen
30a20122b7
Merge commit '8f3c066d23f431fb2c53d97ea489e4c28b42bd82'
...
# Conflicts:
# docs/data/docs.yaml
2026-02-14 12:14:33 +01:00
Bjørn Erik Pedersen
8f3c066d23
Squashed 'docs/' changes from 1ad3c75ad..42914c50e
...
42914c50e content: Correct module mount example
d7b80be5f content: Add a "vendor" glossary entry
e1bd65866 content: Miscellaneous edits
deb1c4b1c content: Fix formatting
7ff740aae content: Update capitalizeListTitles documentation
a9f40164f content: Remove data namespace from functions
b3386a13a content: Remove expired content
e21f66fa5 content: Clean up deprecated service configurations
39ab42192 content: Change default value of respectDoNotTrack to true
067cbb771 Update partial-decorators.md
b419af329 content: Minor edits to collections functions
b12dd9366 content: Improve documentation for partial decorators
573b8610f content: Improve descriptions and signatures for collections functions
81befbae8 content: Update version references
684dbcedb Update HUGO_VERSION to 0.155.3
198e5f1df misc: Update README.md
4d20bbc04 content: Correct and improve glob patterns documentation
39d369ddc content: Update disablePathToLower documentation
be2da46e9 content: Miscellaneous edits to configuration documentation
19a580828 content: Add Commentix to the list of commercial commenting systems
d350725cd theme: Pin npm dependencies and adjust Netlify build commands
9b33bb5fa content: Define canonical output format and default site
84b72792e content: Document glob pattern matching logic
1839dd114 content: Create glob pattern quick reference
30f8f9ca0 content: Revise multi-dimensional content model description
b7e36e479 content: Fix formatting
b1722ac6b content: Indicate data types returned by the or function
1bbe3a566 content: Fix typo
b7e1ac7bb content: Improve example of _redirects rendering
37c71ef80 content: Improve and/or descriptions
0226c14ed content: Updates for v0.155.0
301fa208b content: Change GitHub Pages workflow to support dot files
5d07a679c Update HUGO_VERSION to 0.155.2
adb8e8b2c theme: Pin turbo
9206cb64b Update netlify.toml
84e712633 content: Refine ToMath admonition and provide example
a099af3cd content: Warn about conditional KaTeX CSS on list pages
c3ca7ac4c misc: Address build warnings
80a9139f4 Update HUGO_VERSION to 0.155.0
b096f6279 content: Restore homebrew on linux instructions
05132aa29 content: Hide snap installation instructions
d0e448a14 content: Refactor pages related to image processing
d141bc04f content: Clarify default site redirect description
1d6a0bed5 content: Adjust paragraph order
fa53534cb content: Clarify usage of quote characters in templates
1d62aa670 content: Miscellaneous edits
579c0678b content: Fix description of disableDefaultLanguageRedirect
cd12583ee Update all.md
37b01c320 Update HUGO_VERSION to 0.154.5
66053b6df content: Update version references
3f6fb8737 content: Refresh deployment dependencies to latest versions
c2915ee98 theme: Add a mobile menu variant
6457c3f59 Remove trailing whitespace from content/en/configuration/all.md
46c4d117a config: Mention disableDefaultDimensionRedirect
338500de0 Regen docs helper
98b9d25f3 Updates for 0.154.4 release
8306956e2 Update HUGO_VERSION to 0.154.4
af3f62992 Update HUGO_VERSION to 0.154.3
d06de65bd content: Fix typo
0d841a59e content: Fix typo
ed6fa87cf content: Fix typo
dcf80dbea content: Describe Markdown attribute access in render hook templates
70d3513f1 content: Update version references
7e581c529 Update netlify.toml
c6a706943 content: Remove expired pages
e64ee7d54 misc: Update workflows
bbec5a198 Update HUGO_VERSION to 0.154.1
e8717cb72 content: Fix formatting of glossary entry
0da233817 Add a link to templates.Inner from the partial decorator glossary entry
d55f7ad5e Update Inner.md
b674dfd48 Some more about templates.Inner
ef354e664 Remove some old new-in markers
7d1e407fd content: Misc updates for v0.154.0
43589a017 Update HUGO_VERSION to 0.154.0
46f832b9b content: Change shortcode usage note to an admonition
71ea41250 Adjust sponstors.toml
a5dc99838 Update netlify.toml
c3edd4d5b Update netlify.toml
c1d306d6b Add Zoomment to comments management options
cb222be99 Update HUGO_VERSION to 0.153.3
92ee87b4f content: Update CI/CD and version references
170bf3693 content: Note disabled extended check in v0.153.2 and later
34b5ef8b3 Update HUGO_VERSION to 0.153.2
c3c42b171 content: Add Dart Sass installation to SourceHut CI workflow
1768cc2f5 content: Fix links
63ba04562 theme: Modernize sans-serif font stack for cross-platform consistency
287da5c1c content: Update edition comparison and guidance
44b5010ca content: Update min version required for quick start
ec4f60cb7 content: Update version references
fafa69e7c Update HUGO_VERSION to 0.153.1
37bedd7d3 content: Fix formatting
ed9056088 content: Miscellaneous edits
fa4d61004 content: Miscellaneous post-release updates for v0.153.0
b99f47449 Misc v0.153.0 related edits
018c3e969 Regen docs.yml
be80ec4c7 content: Document new dimensions
ba397d5aa content: Miscellaneous updates for v0.153.0
59ca8fa3f Update HUGO_VERSION to 0.153.0
git-subtree-dir: docs
git-subtree-split: 42914c50ee338b00d0b1cda2c3af8066cd9ad65c
2026-02-14 12:13:44 +01:00
Joe Mooring
7850e7ceb5
commands: Skip chmod for files without owner-write permission
...
Closes #14507
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-13 18:23:56 +01:00
dependabot[bot]
86786c91e5
build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/extras
...
Bumps [github.com/gohugoio/hugo-goldmark-extensions/extras](https://github.com/gohugoio/hugo-goldmark-extensions ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/gohugoio/hugo-goldmark-extensions/releases )
- [Commits](https://github.com/gohugoio/hugo-goldmark-extensions/compare/extras/v0.5.0...extras/v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo-goldmark-extensions/extras
dependency-version: 0.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-13 13:43:28 +01:00
dependabot[bot]
7a7308aec2
build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/passthrough
...
Bumps [github.com/gohugoio/hugo-goldmark-extensions/passthrough](https://github.com/gohugoio/hugo-goldmark-extensions ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/gohugoio/hugo-goldmark-extensions/releases )
- [Commits](https://github.com/gohugoio/hugo-goldmark-extensions/compare/passthrough/v0.3.1...extras/v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo-goldmark-extensions/passthrough
dependency-version: 0.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-13 12:42:44 +01:00
Bjørn Erik Pedersen
2e5132d8d2
tpl/collections: Add some more benchmarks for where and sort
2026-02-13 10:34:39 +01:00
Joe Mooring
19ab3f581c
all: Change site to project where appropriate
...
Closes #14504
2026-02-12 20:52:56 +01:00
Joe Mooring
7137714827
docker: Add full tar and openssh-client to support GitHub Actions
...
Closes #14502
2026-02-12 19:35:14 +01:00
Joe Mooring
3158a51283
markup/highlight: Allow lineNos to be true, false, "inline", or "table"
...
Closes #13481
2026-02-12 19:34:39 +01:00
Bjørn Erik Pedersen
af5051e759
Remove items deprecated <= v0.136.0 (note)
...
Template functions:
- data.GetCSV / getCSV (use resources.GetRemote)
- data.GetJSON / getJSON (use resources.GetRemote)
- crypto.FNV32a (use hash.FNV32a)
- resources.Babel (use js.Babel)
- resources.PostCSS (use css.PostCSS)
- resources.ToCSS (use css.Sass)
Page methods:
- .Page.NextPage (use .Page.Next)
- .Page.PrevPage (use .Page.Prev)
Paginator:
- .Paginator.PageSize (use .Paginator.PagerSize)
Site methods:
- .Site.LastChange (use .Site.Lastmod)
- .Site.Author (use .Site.Params.Author)
- .Site.Authors (use .Site.Params.Authors)
- .Site.Social (use .Site.Params.Social)
- .Site.IsMultiLingual (use hugo.IsMultilingual)
- .Sites.First (use .Sites.Default)
Site config:
- paginate (use pagination.pagerSize)
- paginatePath (use pagination.path)
File caches:
- getjson cache
- getcsv cache
2026-02-12 19:33:58 +01:00
Bjørn Erik Pedersen
b358a65c8b
Upgrade to Go 1.26
2026-02-12 15:34:33 +01:00
Bjørn Erik Pedersen
8ae5e1a8be
tpl: Move from md5 to xxhash for some in memory keys
2026-02-12 15:27:00 +01:00
dependabot[bot]
2d1d7312d0
build(deps): bump golang.org/x/tools from 0.41.0 to 0.42.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.41.0...v0.42.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.42.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-12 14:10:05 +01:00
dependabot[bot]
b26fbf80a0
build(deps): bump github.com/bep/helpers from 0.6.0 to 0.7.0
...
Bumps [github.com/bep/helpers](https://github.com/bep/helpers ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/bep/helpers/releases )
- [Commits](https://github.com/bep/helpers/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/helpers
dependency-version: 0.7.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-12 14:09:09 +01:00
Joe Mooring
828ee720cc
resources/page: Deprecate cascade._target in favor of cascade.target
...
Closes #14341
2026-02-12 13:50:37 +01:00
Joe Mooring
4384f9b8c2
tpl/tplimpl: Throw error when calling gist shortcode
...
Closes #14491
2026-02-12 13:49:23 +01:00
Joe Mooring
55d136dd66
tpl/tplimpl: Throw error when calling twitter/twitter_simple shortcodes
...
Closes #14488
2026-02-12 11:59:09 +01:00
Dr. Tobias Quathamer
e2776593c0
testscripts/commands: Update 'future' date to far future
...
Fixes #14486
2026-02-11 13:34:10 +01:00
Joe Mooring
de0c9f3eca
Reapply "release: Support alpha, beta, and RC releases"
...
This reverts commit e66a33d369 .
Closes #14466
2026-02-10 10:40:29 +01:00
dependabot[bot]
73583091e8
build(deps): bump golang.org/x/image from 0.35.0 to 0.36.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/image/compare/v0.35.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.36.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-10 10:39:02 +01:00
hugoreleaser
ee91280412
releaser: Prepare repository for 0.156.0-DEV
...
[ci skip]
2026-02-08 17:03:48 +00:00
hugoreleaser
8a858213b7
releaser: Bump versions for release of 0.155.3
...
[ci skip]
2026-02-08 16:40:42 +00:00
Bjørn Erik Pedersen
6ac7d081d1
hugolib: Don't render default site redirect for non-primary isHTML output formats
...
When a custom output format has isHTML=true but no Path, renderDefaultSiteRedirect
would derive intermediate redirect paths from homeLink (e.g. /en/foo.html),
creating a spurious redirect at /en/ that overwrites the actual HTML content.
Only render the default site redirect for the canonical "html" format
or for formats with their own Path prefix (e.g. AMP).
Fixes #14482
Co-Authored-By: Joe Mooring <joe.mooring@veriphor.com >
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-08 17:35:32 +01:00
Bjørn Erik Pedersen
24eb84f868
server: Fix stuck server global error logging
...
Fixes #14469
2026-02-06 15:06:19 +01:00
dependabot[bot]
95a3678245
build(deps): bump github.com/evanw/esbuild from 0.27.2 to 0.27.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.27.2 to 0.27.3.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.2...v0.27.3 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.27.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-06 10:50:39 +01:00
Bjørn Erik Pedersen
9045797d5f
server: Fix panic when the server browser error handler tried to use a config in a state of flux
...
I tried and failed to create a test for this, but I have tested this manually.,
Fixes #14470
2026-02-05 20:11:48 +01:00
hugoreleaser
73641aeca1
releaser: Prepare repository for 0.156.0-DEV
...
[ci skip]
2026-02-02 10:27:50 +00:00
hugoreleaser
d8c0dfccf7
releaser: Bump versions for release of 0.155.2
...
[ci skip]
2026-02-02 10:04:51 +00:00
Bjørn Erik Pedersen
6bd2bde9d3
resources/image: Add some image decode/encode debug logging
...
Fixes #14337
Closes #14460
2026-02-01 22:46:01 +01:00
Bjørn Erik Pedersen
0f1c7d1200
Fix template change detection for multi-version sites
...
When templates were edited in a multi-version/role setup, only pages
from the current site slice (h.Sites) were checked for dependencies,
not pages from all sites. Fix by changing withPage to iterate over
all sites using allSites.
Fixes #14461
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-01 22:24:52 +01:00
hugoreleaser
10352335e0
releaser: Prepare repository for 0.156.0-DEV
...
[ci skip]
2026-01-30 10:32:56 +00:00
hugoreleaser
f23576f2fb
releaser: Bump versions for release of 0.155.1
...
[ci skip]
2026-01-30 10:10:48 +00:00
Bjørn Erik Pedersen
b5d43cdc17
Fix image DecodeConfig regression of WebP images from file cache
...
Fixes #14453
2026-01-29 22:53:13 +01:00
Bjørn Erik Pedersen
6ef8017f60
Remove go vet from check.sh
...
Too slow.
2026-01-29 15:45:21 +01:00
Bjørn Erik Pedersen
d67925f5a1
Add ./check.sh script
...
Running `mage check` takes too long time for user (and agent) iterations. That will eventualy run on CI.
This is a faster version that:
* Checks gofmt.
* Runs go vet.
* Runs staticcheck.
* Runs unit tests without the race flag.
It assumes that Go is installed, but will check if staticcheck is available and install it if not with go install.
It takes an optional argument to specify packages to check, otherwise it checks all packages.
This commit also enable local runs of the image golden tests.
2026-01-29 14:24:54 +01:00
Bjørn Erik Pedersen
48dd4f469a
Update AGENTS.md with debug printing note
...
Added note about debug printing and CI build failure.
2026-01-29 11:30:50 +01:00
Joe Mooring
b1e1eede50
resources/images: Fix WebP useSharpYuv being ignored
...
Closes #14449
2026-01-29 10:50:37 +01:00
Joe Mooring
f522a7282b
tpl/tplimpl: Remove failing Twitter tests
...
In v0.141.0 we deprecated:
- privacy.twitter.simple in favor of privacy.x.simple
- privacy.twitter.disable in favor of privacy.x.disable
Use of those settings is now causing the integration test to fail.
2026-01-28 23:21:35 -08:00
hugoreleaser
6ac72dd3bf
releaser: Prepare repository for 0.156.0-DEV
...
[ci skip]
2026-01-28 16:50:40 +00:00
hugoreleaser
74c0bbfc6a
releaser: Bump versions for release of 0.155.0
...
[ci skip]
2026-01-28 16:28:23 +00:00
Bjørn Erik Pedersen
e66a33d369
Revert "release: Support alpha, beta, and RC releases"
...
This reverts commit 663075920a .
Closes #14448
2026-01-28 16:54:57 +01:00
Jayson Wang
8a979d54d1
Fix data race when clearing cache in cachebusters
2026-01-28 16:50:57 +01:00
Bjørn Erik Pedersen
fd49df8f7a
resources/images: Fix comment for Quality field in ImageConfig
2026-01-28 08:41:23 +01:00
Bjørn Erik Pedersen
c7b35c8704
Fix panic reported in discourse
...
Fixes #14441
2026-01-27 22:48:46 +01:00
Bjørn Erik Pedersen
5916b61be9
Remove disableDate and disableLatLong from MetaConfig
...
Since the meta config is new (and exif config is deprecated), remove
these options from MetaConfig. The fields filter controls which metadata
is extracted, including Date and GPS fields.
The existing exif config options are preserved for backward compatibility.
Closes #14437
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-27 21:47:32 +01:00
Bjørn Erik Pedersen
7eafef2269
internal/warpc: Make webp C defaults match the Go defaults
...
To avoid confusion.
2026-01-27 18:31:45 +01:00
Bjørn Erik Pedersen
00c4228f61
testscripts: Move server tests to own folder
...
See #14439
2026-01-27 18:27:47 +01:00
Bjørn Erik Pedersen
5f5b2f378f
testing: Skip some slow tests when not running in CI
...
Fixes #14438
2026-01-27 15:38:49 +01:00
Joe Mooring
b3ea2a5fab
misc: Update image processing description in README.md
2026-01-27 05:01:15 -08:00
Joe Mooring
67b543549b
docs: Update docs.yaml
2026-01-27 10:05:34 +01:00
Bjørn Erik Pedersen
ef7a22a2ff
magefile: Skip commands test when running mage check locally
...
They're flaky for some reason.
2026-01-27 09:05:01 +01:00
Bjørn Erik Pedersen
8dfcece805
Fix recently introduced partial rendering bug
...
Fixes #14433
2026-01-26 22:45:16 +01:00
Bjørn Erik Pedersen
9a6bfe2667
Remove -p 2 parallelism limit for local test runs
...
Only limit parallelism in CI where memory is constrained.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-26 21:40:52 +01:00
dependabot[bot]
7d45614c6d
build(deps): bump golang.org/x/tools from 0.40.0 to 0.41.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.40.0 to 0.41.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.40.0...v0.41.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 11:01:34 +01:00
dependabot[bot]
7f12c0900d
build(deps): bump github.com/olekukonko/tablewriter from 1.1.2 to 1.1.3
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/olekukonko/tablewriter/releases )
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.1.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 11:00:53 +01:00
dependabot[bot]
dab2c332dc
build(deps): bump github.com/alecthomas/chroma/v2 from 2.23.0 to 2.23.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.23.0 to 2.23.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.23.0...v2.23.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.23.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-26 10:59:39 +01:00
Bjørn Erik Pedersen
5a64551a07
Make docs helper maxAge JSON output user friendly
2026-01-25 13:58:28 +01:00
Bjørn Erik Pedersen
0fc63fbf57
Add AGENTS.md and CLAUDE.md
2026-01-25 13:35:28 +01:00
dependabot[bot]
576d55d009
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.58.3 to 1.59.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.58.3...service/s3/v1.59.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.59.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-24 20:06:28 +01:00
dependabot[bot]
b9400b8a95
build(deps): bump golang.org/x/image from 0.34.0 to 0.35.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/image/compare/v0.34.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.35.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-24 18:11:13 +01:00
dependabot[bot]
ce0c7f42c1
build(deps): bump golang.org/x/mod from 0.31.0 to 0.32.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/mod/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-24 17:00:01 +01:00
Simon Heimlicher
f472dd48a7
tpl: Fix partial decorator panic when partial returns falsy
...
When {{ with partial "foo" }} returns a falsy value (false, nil, ""),
the with block is skipped but _popPartialDecorator was only called
inside the with block. This left an orphan entry on the decorator
stack, causing "partial decorator ID mismatch" panic on subsequent
partial calls.
Add _popPartialDecorator call to the else branch to ensure the
decorator stack is always balanced regardless of the partial's
return value.
Fixes #14419
2026-01-24 16:59:18 +01:00
Bjørn Erik Pedersen
50973e7272
Add == and != operators to range predicates
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-24 16:51:57 +01:00
Simon Heimlicher
48566b6f37
resources: Fix race condition in test helper
...
The fetchResourceForSpec function was reusing a single ReadSeekCloser
across multiple goroutines, causing a race condition when
TestImageTransformConcurrent runs with imageProcWorkers > 1.
This was exposed by commit e569dd59a ("Misc webp performance work")
which increased imageProcWorkers from 1 to 2.
Fix by creating a new reader on each call to the open function.
Fixes race condition causing segfault on Apple Silicon.
Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com >
2026-01-24 15:41:29 +01:00
Bjørn Erik Pedersen
b441472b69
Add modulequeries file cache for module version queries
...
This adds a new file cache named 'modulequeries' with a 24h maxAge
that caches JSON responses from 'go mod download -json' when querying
module versions with constraints (e.g., version = "<v3.0.0").
On subsequent builds, if the cached JSON exists and the module
directory it references is non-empty, the cached result is used
directly, skipping the costly VCS interaction entirely.
Fixes #14417
2026-01-24 14:25:34 +01:00
Bjørn Erik Pedersen
ac2c3fb20f
Allow v1,v2 etc. style version names while still supporting full semver in queries
...
Fixes #14414
2026-01-23 18:53:32 +01:00
Bjørn Erik Pedersen
ee91c707ee
Make Page.Aliases more useful in multidimensional setups (note)
...
There are 2 fundamental changes related to alias handling in this PR:
1. the `Page.Aliases`` method returns a ready-to-use list of aliases, not the raw input data. This means that it's prefixed with correct dimension values (e.g. language code) and output format paths, and ready to use in e.g. Netlify's _redirects file.
2. We only render aliases for output formats that is both defined as `IsHTML` and `Permalinkable`.
See #14402
2026-01-23 18:52:35 +01:00
Bjørn Erik Pedersen
11f7f39913
Fix cascade draft panic
...
Fixes #14409
Fixes #14412
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2026-01-23 16:08:29 +01:00
Bjørn Erik Pedersen
192e3c453e
Add range matchers for site matrix vector store filtering
...
Fixes #14359
2026-01-22 12:03:02 +01:00
Bjørn Erik Pedersen
e569dd59a0
Misc webp performance work
...
*- Dynamic pool sizing for WebP and Katex based on CPU count
- WebP decode: use RGB (3 bytes) for opaque images instead of RGBA (4 bytes)
- Add new imaging.config with new encoder method option; this is default 4 (what we had before), if have tested with value 2 for a 30% speedup on my MacBook, but that does sacrifice quality in some cases (quality/speed trade-off 0-6)
- Track hasAlpha in decode response to enable RGB optimization
- Scale image processing workers (1->2) on high-core machines
- Add WebP benchmark test
On my MacBook Pro M1 Pro, I now get these numbers compared to Hugo v0.152.0:
```
goos: darwin
goarch: arm64
pkg: github.com/gohugoio/hugo/internal/warpc
cpu: Apple M1 Pro
│ cmp152.bench │ fix-webpbench.bench │
│ sec/op │ sec/op vs base │
Webp-10 162.6m ± 32% 145.3m ± 21% -10.60% (p=0.026 n=6)
│ cmp152.bench │ fix-webpbench.bench │
│ B/op │ B/op vs base │
Webp-10 41.69Mi ± 0% 123.79Mi ± 0% +196.92% (p=0.002 n=6)
│ cmp152.bench │ fix-webpbench.bench │
│ allocs/op │ allocs/op vs base │
Webp-10 9.963k ± 3% 18.797k ± 2% +88.67% (p=0.002 n=6)
```
For general image resize benchmarks compared to Hugo v0.152.0 (note that that's not the result of this branch):
```bash
goos: darwin
goarch: arm64
pkg: github.com/gohugoio/hugo/resources/images
cpu: Apple M1 Pro
│ cmp152.bench │ fix-webpbench.bench │
│ sec/op │ sec/op vs base │
ImageResize-10 84.12m ± ∞ ¹ 40.70m ± ∞ ¹ -51.61% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ cmp152.bench │ fix-webpbench.bench │
│ B/op │ B/op vs base │
ImageResize-10 32.37Mi ± ∞ ¹ 29.25Mi ± ∞ ¹ -9.64% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ cmp152.bench │ fix-webpbench.bench │
│ allocs/op │ allocs/op vs base │
ImageResize-10 11.34k ± ∞ ¹ 12.03k ± ∞ ¹ +6.07% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
```
Closes #14370
2026-01-21 10:44:22 +01:00
Joe Mooring
5ba03bf657
hugolib: Fix multilingual alias generation
...
Closes #14388
2026-01-21 10:34:32 +01:00
Bjørn Erik Pedersen
c1b2e58bfb
Fix file mount specifity issue within the same module
...
Fixes #14405
2026-01-20 13:15:33 +01:00
Bjørn Erik Pedersen
77214117ae
deps: Upgrade github.com/gohugoio/gift v0.1.0 => v0.2.0
2026-01-20 09:33:30 +01:00
Bjørn Erik Pedersen
1a94731669
Move from github.com/disintegration/gift to github.com/gohugoio/gift
...
With some performance improvements upstream, there's improvements in memory usage. Note that the benchmark below is full site builds with image processing:
```
goos: darwin
goarch: arm64
pkg: github.com/gohugoio/hugo/resources/images
cpu: Apple M1 Pro
│ benchcmp.bench │ feat-forkgift-14397.bench │
│ sec/op │ sec/op vs base │
ImageResize-10 74.60m ± 4% 73.75m ± 4% ~ (p=0.093 n=6)
│ benchcmp.bench │ feat-forkgift-14397.bench │
│ B/op │ B/op vs base │
ImageResize-10 32.38Mi ± 1% 29.31Mi ± 1% -9.49% (p=0.002 n=6)
│ benchcmp.bench │ feat-forkgift-14397.bench │
│ allocs/op │ allocs/op vs base │
ImageResize-10 12.53k ± 1% 12.05k ± 1% -3.82% (p=0.002 n=6)
```
Closes #14397
2026-01-19 22:18:45 +01:00
dependabot[bot]
18784711b5
build(deps): bump github.com/alecthomas/chroma/v2 from 2.22.0 to 2.23.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.22.0...v2.23.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.23.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-19 11:12:44 +01:00
Shravani Totre
2c611091fd
warpc: Fix typed nil return in Start
...
Fixes a panic in Close() when initialization fails by ensuring Start returns a nil interface instead of a typed nil.
See #14372
2026-01-18 14:54:31 +01:00
Joe Mooring
8e9e04e395
resources/images: Stabilize order of valid sources in error message
...
Closes #14390
2026-01-18 10:27:40 +01:00
Joe Mooring
32334d098e
hugolib: Fix relative alias generation
...
Closes #14381
2026-01-17 10:33:44 +01:00
Bjørn Erik Pedersen
8e2e60dd45
Add XMP and IPTC image metadata support
...
Rename resources/images/exif to resources/images/meta and extend
metadata support to include XMP and IPTC fields. Deprecate .Exif
in favor of .Meta. Update imagemeta dependency and add configuration
options for metadata extraction.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
Closes #13146
2026-01-16 20:06:44 +01:00
Bjørn Erik Pedersen
2bc54df622
output: Add TestCanonical integration test
2026-01-16 19:08:54 +01:00
Bjørn Erik Pedersen
608ed09a0a
Rename common/maps to common/hmaps ( #14384 )
...
Go's stdlid now has a maps package, which is very useful. We have been using imports on the form `xmaps "maps"`, but auto import tools doesn't handle this, which is annoying.
I have been thinking about this for some time, but have been holding back because of all the import changes. However, now is a good time to do this, with very little unmerged code.
2026-01-16 11:47:46 +01:00
dependabot[bot]
94f1ede3aa
build(deps): bump golang.org/x/net from 0.48.0 to 0.49.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.48.0 to 0.49.0.
- [Commits](https://github.com/golang/net/compare/v0.48.0...v0.49.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.49.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-15 11:54:51 +01:00
dependabot[bot]
ab374e3d22
build(deps): bump github.com/bep/lazycache from 0.8.0 to 0.8.1
...
Bumps [github.com/bep/lazycache](https://github.com/bep/lazycache ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/bep/lazycache/releases )
- [Commits](https://github.com/bep/lazycache/compare/v0.8.0...v0.8.1 )
---
updated-dependencies:
- dependency-name: github.com/bep/lazycache
dependency-version: 0.8.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-14 17:23:07 +01:00
Joe Mooring
1a9133075c
deps: Upgrade github.com/alecthomas/chroma v2.21.1 => v2.22.0
...
Closes #14368
2026-01-13 23:03:16 +01:00
Bjørn Erik Pedersen
d36a8f5601
Decode webp.ImageConfig natively
...
This has 2 main benefits:
1. When you only need width/height, we don't need to spin up a WASM runtime.
2. When all processed images are cached in the file cache, we don't need to spin up a WASM runtime.
The above is only really visible for smaller sites, but it's annoying to potentially have a site building in 15ms take e.g. 200ms because of WASM startup time.
Fixes #14371
2026-01-13 17:58:34 +01:00
hugoreleaser
487b8e3af3
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2026-01-11 21:14:41 +00:00
hugoreleaser
a6f99cca22
releaser: Bump versions for release of 0.154.5
...
[ci skip]
2026-01-11 20:53:23 +00:00
Bjørn Erik Pedersen
a775488304
Fix some default site redirect woes
...
* The fix for #14357 yesterday sadly had the assumption that default language/version/role always was the first site in the sites matrix. This is common, but not always true.
* Also, that fix forgot to add a redirect the other way when `defaultContentLanguageInSubdir` was disabled, e.g. from `/en/` to `/`.
* This commit also renames config option `DisableDefaultDimensionRedirect` to `DisableDefaultSiteRedirect`. This is stricly a breaking change, but it's only been out for a day, and the old name didn't make much sense.
Fixes #14361
2026-01-11 21:50:10 +01:00
Rohan Hasabe
66ba63cd5f
hugolib: Fix newly created shortcodes not found during server rebuild
...
When a new shortcode file was added during `hugo server`, the shortcode
was detected but not properly registered in the template cache. This caused
subsequent content edits using the shortcode to fail with "template for
shortcode not found" until the server was restarted.
The issue was that when a shortcode was added, only a glob identity for
dependent content was added to the changes list, but not the shortcode
file's own pathInfo. This meant RefreshFiles filtered it out and never
inserted it into the shortcodesByName cache.
The fix adds the shortcode file's pathInfo to changes (in addition to the
glob for dependent content), and corrects the glob pattern from
`shortcodes/...` to `/_shortcodes/...` to match the actual path format.
Fixes #14207
2026-01-11 19:33:00 +01:00
Joe Mooring
eb06a3cd0c
tpl/tplimpl: Remove trailing slash from void elements
2026-01-11 15:17:19 +01:00
hugoreleaser
a798e3e724
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2026-01-10 15:48:05 +00:00
hugoreleaser
fbcf0d52a1
releaser: Bump versions for release of 0.154.4
...
[ci skip]
2026-01-10 15:24:22 +00:00
dependabot[bot]
a2b2a5a978
build(deps): bump github.com/goccy/go-yaml from 1.19.1 to 1.19.2
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.19.1 to 1.19.2.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.19.1...v1.19.2 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-version: 1.19.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-10 15:45:39 +01:00
Barkın Balcı
ec178ea463
tpl: Fix language resolution for markdown shortcodes
...
Fixes #14098
2026-01-10 15:45:03 +01:00
Bjørn Erik Pedersen
2d80b8a741
For multiple dimensions setups, fix alias handling and multihost publish path
...
* The alias handling was left as is when we added new dimensions in v0.152.0, which meant that if you had `defaultContentVersionInSubDir=true` set, the alias page in the root would not be correctly created.
* Also, if you had multihost setup with multiple dimensions, the publish would be incorrect: The language key was added last instead of first.
* The home page alias handling is reworked and made more robust, which also fixes some subtle issues:
* It now supports redircects for multiple HTML output formats for the home page.
* We skip creating aliases for disabled home pages.
* With potentially multiple output formats with one of them canonical, we added a new `Canonical` method to the `Page.OutputFormats`, which allows you to do this in a template:
```handlebars
{{ with .OutputFormats.Canonical }}<link rel="{{ .Rel }}" href="{{ .Permalink }}">{{ end }}
```
Fixes #14354
Fixes #14356
2026-01-10 15:34:51 +01:00
hugoreleaser
5ea3e13db6
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2026-01-06 16:51:07 +00:00
hugoreleaser
b1c1bd019f
releaser: Bump versions for release of 0.154.3
...
[ci skip]
2026-01-06 16:30:17 +00:00
dependabot[bot]
866b8e5aa6
build(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.13 to 1.7.16.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.13...v1.7.16 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.16
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-06 10:53:03 +01:00
hugoreleaser
409669fa48
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2026-01-02 16:30:54 +00:00
hugoreleaser
f66d094446
releaser: Bump versions for release of 0.154.2
...
[ci skip]
2026-01-02 16:08:44 +00:00
Bjørn Erik Pedersen
e9b9b36f46
Fix alpha/fuzzy border issue with new webp decoder for images with with transparent background
...
Fixes #14339
2026-01-02 17:06:10 +01:00
Joe Mooring
b8a2c10d06
snap: Limit build platforms to amd64, arm64, ppc64el, and s390x
...
The Node 24 Snap has dropped support for armhf and riscv64.
2026-01-01 19:58:01 -08:00
Joe Mooring
601df38834
snap: Update to core 24
2026-01-01 15:51:32 -08:00
hugoreleaser
3bed212a2f
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2026-01-01 17:52:38 +00:00
hugoreleaser
e2fd6764be
releaser: Bump versions for release of 0.154.1
...
[ci skip]
2026-01-01 17:32:20 +00:00
Bjørn Erik Pedersen
8f3527f61c
Add WASM licensing information to README
...
Added a section on licensing for the Hugo project, detailing the licenses of bundled libraries.
2026-01-01 18:27:57 +01:00
Bjørn Erik Pedersen
09048aad76
Fix partial decorator detection in partial with blocks with outer range break or continue
...
E.g.:
```handlebars
{{- $items := slice "a" "b" "c" }}
{{- range $items }}
{{- with partial "b" . -}}
{{break}}
{{- else }}
else: {{ . -}}
{{- end }}
{{- end }}
```
Fixes #14333
2026-01-01 18:05:10 +01:00
hugoreleaser
f42c422a12
releaser: Prepare repository for 0.155.0-DEV
...
[ci skip]
2025-12-31 13:09:12 +00:00
hugoreleaser
0b71db299a
releaser: Bump versions for release of 0.154.0
...
[ci skip]
2025-12-31 12:45:55 +00:00
Bjørn Erik Pedersen
5c7fad23a3
tpl/collections: Fix apply to work with built-in funcs like len
...
Fixes #13418
2025-12-31 13:09:04 +01:00
Bjørn Erik Pedersen
700bb78198
Remove Linode sponsor from README
...
Removed Linode sponsor link from the README.
2025-12-30 19:54:11 +01:00
majiayu000
d3b5d47a43
helpers: Limit verbose watch output for better readability
...
Limits the number of root groups shown in 'Watching for changes' output
to 10 maximum, with a summary message for remaining paths. This prevents
the message from becoming excessively long when watching sites with many
mount points.
Fixes #14277
Signed-off-by: majiayu000 <1835304752@qq.com >
2025-12-30 19:44:35 +01:00
Bjørn Erik Pedersen
86cd1838ff
tpl/reflect: Make the IsImageResource implementation less technical
...
And closer to the documentation. The old one was correct, but a bit too tied to the internal implementation.
2025-12-30 19:43:55 +01:00
Joe Mooring
871da3370a
internal/warpc: Increase WebP memory limit to 384 MiB
...
Closes #14309
2025-12-30 16:51:58 +01:00
dependabot[bot]
2637aa1540
build(deps): bump github.com/tetratelabs/wazero from 1.10.1 to 1.11.0
...
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero ) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/tetratelabs/wazero/releases )
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.10.1...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
dependency-version: 1.11.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-30 16:01:32 +01:00
Bjørn Erik Pedersen
bf1d20d735
Revert "resources/page: Fix slugorcontentbasename for section pages"
...
This reverts commit 25c7c18f9f .
See #14104
See #14325
2025-12-30 16:00:37 +01:00
Bjørn Erik Pedersen
1deec99bba
Update tpl/reflect/reflect.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 16:00:19 +01:00
Bjørn Erik Pedersen
b7bb557c6a
Add reflect.Is{Page,Site,Resource,ImageResource}
...
Fixes #14307
2025-12-30 16:00:19 +01:00
Bjørn Erik Pedersen
7c19c196c3
Allow partials to work as decorators
...
Fixes #13193
2025-12-30 15:58:55 +01:00
hugoreleaser
555443b64a
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-30 10:48:50 +00:00
hugoreleaser
1f2de189ed
releaser: Bump versions for release of 0.153.5
...
[ci skip]
2025-12-30 10:27:17 +00:00
Bjørn Erik Pedersen
c6ae33c61d
images: Add compression option to image config and clean up some of the options handling
...
The original idea of setting quality to 0 for lossless WebP was didn't allow a setting that made sense for both JPEG and WebP.
Note that the above didn't really work at all, so this should not break anything.
2025-12-29 21:38:19 +01:00
Bjørn Erik Pedersen
edeebf0d33
config: Fix cascade per language in hugo.toml regression
...
An onfurtunate side effect of the fix in v0.153.4.
Fixes #14321
2025-12-29 20:48:12 +01:00
Simon Heimlicher
ea9675f6e7
images: Fix WebP quality and hint parameters being ignored
...
Fixes #14316
2025-12-29 16:47:43 +01:00
hugoreleaser
b1f7e35a98
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-28 21:55:32 +00:00
hugoreleaser
a0d4e1fb26
releaser: Bump versions for release of 0.153.4
...
[ci skip]
2025-12-28 21:34:16 +00:00
Bjørn Erik Pedersen
96777d9b89
Set cascade target to the content matrix if not set in the cascade itself
...
Fixes #14310
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-12-28 22:30:55 +01:00
hugoreleaser
25126e5f87
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-26 16:33:20 +00:00
hugoreleaser
179034abbb
releaser: Bump versions for release of 0.153.3
...
[ci skip]
2025-12-26 15:33:04 +00:00
dependabot[bot]
96ac146eef
build(deps): bump github.com/bep/imagemeta from 0.12.0 to 0.12.1
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.12.0...v0.12.1 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.12.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-26 11:36:41 +01:00
Bjørn Erik Pedersen
d4c0e4452c
Fix error with _content.gotmpl file with index.md siblings
...
Regression introduced in Hugo 0.153.0.
Note that this is a very uncommon setup, but it worked before.
Fixes #14299
2025-12-25 14:22:14 +01:00
hugoreleaser
418156ec3e
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-22 17:15:37 +00:00
hugoreleaser
798533a201
releaser: Bump versions for release of 0.153.2
...
[ci skip]
2025-12-22 16:53:01 +00:00
Bjørn Erik Pedersen
a8c5d0d00d
Fix "image: unknown format" error
...
Fixes #14295
2025-12-22 17:49:44 +01:00
Bjørn Erik Pedersen
a94a941fe3
modules: Remove extended edition check
...
With WebP support now in the standard Hugo binary, this warning has too many false positives.
Fixes #14284
2025-12-22 11:12:10 +01:00
Joe Mooring
385d1a1342
misc: Update edition comparison and guidance in README.md
2025-12-20 21:37:30 +01:00
hugoreleaser
d30bd50467
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-20 15:38:51 +00:00
hugoreleaser
8e6cac8462
releaser: Bump versions for release of 0.153.1
...
[ci skip]
2025-12-20 15:15:53 +00:00
Bjørn Erik Pedersen
4085ee9340
Handle PNG named *.webp
...
Fixes #14288
2025-12-20 16:12:15 +01:00
Bjørn Erik Pedersen
168bf17e70
Revert deprecation logging for contentDir per language
...
It was accidentally introduced because we compile it to file mounts, and `lang` on file mounts is deprecated in favor of `sites.matrix`.
But contentDir per language is something we have had for a long time, and is to useful too to deprecate.
Fixes #14287
2025-12-20 14:59:46 +01:00
Bjørn Erik Pedersen
80ea90c880
images: Add some more PNG tests
...
To try to figure out #14288 .
2025-12-20 13:42:21 +01:00
Bjørn Erik Pedersen
f740d7cfe0
Fix panic when 404 is backed by a content file
...
Fixes #14283
2025-12-20 13:42:21 +01:00
Joe Mooring
5f46da6e2a
internal/warpc: Increase WebP memory limit to 256 MiB
...
Closes #14282
---------
Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com >
2025-12-20 12:16:36 +01:00
hugoreleaser
fe64a68225
releaser: Prepare repository for 0.154.0-DEV
...
[ci skip]
2025-12-19 10:35:25 +00:00
hugoreleaser
b4128babb8
releaser: Bump versions for release of 0.153.0
...
[ci skip]
2025-12-19 10:14:01 +00:00
Bjørn Erik Pedersen
790a5b7014
hugoreleaser: Updage macospkgremote to increase notarization timeout
...
Apple's servers seems to be busy today.
2025-12-19 11:11:24 +01:00
Bjørn Erik Pedersen
70ce2446b5
Merge commit '08e1ea5c709d3d49bdc3ce3c21e8fa05a33150d0'
2025-12-19 10:07:30 +01:00
Bjørn Erik Pedersen
08e1ea5c70
Squashed 'docs/' changes from 71f739460..1ad3c75ad
...
1ad3c75ad theme: Run ncu -u to update dependencies (#3311 )
2942d3753 content: Update version refs
e298fdfaf content: Remove ref to old version
c1fc876ea content: Improve taxonomic weight example
d706a013d content: Document additional functions
5751c37cc content: Standardize string function signatures
d65e6fae7 misc: Add data/docs.yaml to ignorePaths in cspell config
ba1f98a32 content: Improve collections.First/Last string examples
d7b5a2efd content: Improve collections.First/Last examples
e94e49db2 content: Add Smart Hugo to editor plugins
af204597a content: Clarify config description
9d1cb33cd content: Fix typo
dded23962 content: Clarify note on rare use case for PageRef method
8af9e3be4 content: Update the Homebrew installation description
be56390b3 content: Clarify command description
fa228e9f0 content: Clarify AsciiDoc extensions setting description
3a23a4af2 docs: Add best practices for manual summary marker placement
050d7c75e misc: Fix cspell configuration
74642b18d content: Miscellaneous edits
75a2c8425 content: Add missing reference definitions
6303f27e1 content: Improve description of the SITE.Home method
4dfbd647f Revert the minimal analytics changes (#3265 )
c369e534d theme: Move tracking to turbo:load
88b451022 theme: Move tracking to turbo:render
7040dc5ee Move to minimalanalytics for GA tracking
4e8a523fb content: Update KaTeX link attributes to v0.16.25 (phase 2)
21046b942 content: Update KaTeX link attributes to v0.16.25 (phase 1)
b8df9d941 theme: Use Path for the glossary link destination
acd6c2954 theme: Use page Path when generating Markdown links
543f78340 content: Fix formatting
aef89d192 content: Correct page collection quick-reference data
08645236a content: Use RSS output format in shortcode lookup example
58654c106 content: Fix archetype lookup order
9f79bacc4 content: Describe valid uses of the nil keyword
41f139d14 theme: Remove the root view transition
6ab407bb9 content: Improve links on lang.Translate page
91e724065 content: Add missing fragments to links in the module mounts description
2f6b4a58c content: Clarify ByCount sort order
8594590b2 Update netlify.toml
811574060 content: Update version references
a12bcf7dd content: Update version references
23ca199ed Update netlify.toml
5d3da2351 content: Update version references
1617ee75b misc: Update Netlify config to build with v0.152.0
6467bda93 content: Remove outdated new-in badges
4b3ef4bd5 content: Improve description of default mount behavior
5a861f500 content: Revise partials.IncludeCached description and signature
2ad9d705a content: Correct the partials.IncludeCached signature
9f611b879 Update netlify.toml
ca21f5fbd content: Add warning about automatic summaries
2065fadde content: Update commit message guidelines
a0784f261 content: Remove outdated new-in badges
ce5a249f2 content: Remove Codeberg Pages documentation
3424b95f2 content: Update CLI docs
27fd350a6 content: Change KaTeX version references to 0.16.23
ba8c5fd3b content: Change MathJax version reference from v3 to v4
c83465222 content: Fix broken link
c6cde1074 content: Update version references
467277939 content: Fix typo
e424b6b19 content: Document new features in v0.151.0
a46898f79 Update netlify.toml
f8407c3b5 content: Enhance content view template details
974175690 content: Optionally disable whitespace trimming in fenced code blocks
25bffc4c4 Update netlify.toml
98e9ef5f0 theme: Move initColorScheme() to head
a1566495b theme: Preload fonts (#3209 )
c0271d266 content: Add missing word in deploy-with-rsync.md
47099c4fa content: Remove outdated new-in badges
439b5c18b content: Fix collections.D seed example
d2486ba67 content: Update description of IsNode method
4de8815e9 content: Update description of the cascade front matter field
0801e9b3f content: Fix broken link
9bbbfb59d content: Update Netlify hosting guide and version refs
4f444fb53 misc: Update docs.yaml
a7a9a7563 Update module.md
a7909fe37 Update netlify.toml
47a2c2038 content: Update collections.D page to remove casting note
ecca5ef48 content: Update summaryLength description with default value
310e11195 content: Change alias example
bd6b53b5d content: Update minify config documentation
21bb0bb66 Update netlify.toml
68912f1a3 content: Update version reference
28a47a50f content: Fix missing link to latest release under Prebuilt Binaries
8eac2a120 theme: Revise inline code span styling
2e71b6d0a Adjust sponsor
d93340a78 content: Update documentation guide
9f6213ebe content: Fix glob pattern-alternatives syntax in cascade.md
1f61fd6be content: Add seed examples to collections.D
65385a5d0 content: Fix Cloudflare deploy not_found_handling value
4f70df235 content: Fix typo
fc216f2d9 content: Fix broken link
e98b340f2 Update cascade.md
e316dbf93 content: Update version references
f8e863e97 misc: Remove textlint config file
3b9c3e2a1 content: Miscellaneous updates related to v0.149.0
3ccc439fc Update netlify.toml
07f5140e8 Merge branch 'tempv0.149.0'
17f8d33d8 content: Add format option to transform.Unmarshal
a6a971596 content: Document the collections.D function
66eee712b content: Update front matter configuration example
863945e13 content: Update fmt.Println example
1d9a92bc7 theme: Don't exclude current section from related content
1386d8ed2 Update introduction.md
0ac89b015 content: Replace inline URLs with autolinks
54fad1e01 content: Fix typo
e09f6b0c5 content: Wrap calls to eturl shortcode in angle brackets
23efd9766 Merge commit 'bfa74537929f409fca841540b971125b7678963a'
e98754e72 resources/page: Add :sectionslug and :sectionslugs permalink tokens
git-subtree-dir: docs
git-subtree-split: 1ad3c75ad0e997d66598c1453db9989fde7d9680
2025-12-19 10:04:19 +01:00
Bjørn Erik Pedersen
65d43e1d0d
resources/images: Don't trust the file extension when decoding JPEG and PNG images
...
Which is it behaved before we added the extended WebP support.
Testing on some sites shows that it's not uncommon to store JPEGs with PNG extensions and vice versa.
This an error situation that needs to be reported, but let us push that to a future Hugo version to reduce the noise in this one.
2025-12-18 19:36:48 +01:00
Bjørn Erik Pedersen
65a76664e3
Add full filename to image processing error messages if possible
...
Fixes #14278
2025-12-18 17:46:26 +01:00
Bjørn Erik Pedersen
da5b1fcf8f
tailwindcss: Add referece to skipInlineImportsNotFound when import not found in assets
...
See #14273
2025-12-18 10:57:01 +01:00
dependabot[bot]
39649dce49
build(deps): bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.19.0 to 1.19.1.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.19.0...v1.19.1 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-version: 1.19.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-18 10:12:10 +01:00
dependabot[bot]
614fb16ec6
build(deps): bump github.com/alecthomas/chroma/v2 from 2.21.0 to 2.21.1
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.21.0 to 2.21.1.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.21.0...v2.21.1 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.21.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-18 10:11:52 +01:00
Bjørn Erik Pedersen
0637adb239
Improve error messages for template failures
2025-12-17 21:12:15 +01:00
Bjørn Erik Pedersen
0bf61353f6
Improve error handling/messages in Hugo Pipes
...
Fixes #14257
Closes #14270
2025-12-17 21:12:15 +01:00
Bjørn Erik Pedersen
b82e496c13
Fix some outdated front matter
...
Fixes #14271
2025-12-17 18:51:02 +01:00
dependabot[bot]
33542d3966
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.58.2 to 1.58.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.58.2...service/s3/v1.58.3 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.58.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-17 13:02:00 +01:00
Bjørn Erik Pedersen
588d20b315
deps: Upgrade github.com/alecthomas/chroma/v2 v2.20.0 => v2.21.0
...
Closes #14266
2025-12-17 11:18:56 +01:00
dependabot[bot]
b33730293d
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.1 to 1.41.0
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.40.1 to 1.41.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.40.1...v1.41.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.41.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-17 10:23:06 +01:00
dependabot[bot]
e6a3f1d62b
build(deps): bump github.com/evanw/esbuild from 0.27.1 to 0.27.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.27.1 to 0.27.2.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.1...v0.27.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.27.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-17 10:07:25 +01:00
Bjørn Erik Pedersen
573ecb530f
images: Add a webp test with bg color
2025-12-17 09:41:25 +01:00
Bjørn Erik Pedersen
9937a5dcaa
tpl/css: Deprecate libsass in favor of dartsass (note)
...
The upstream library is now EOL and the repo is archived. Also, it's time for us to move away from the extended CGO build and for Hugo users not already done that, move to https://gohugo.io/functions/css/sass/#dart-sass
https://github.com/sass/libsass
Closes #14261
2025-12-16 22:31:13 +01:00
Bjørn Erik Pedersen
1b4514e020
Encode and Decode using the libwebp library via WASM with animation support
...
Fixes #10030
Fixes #8500
Fixes #12843
Fixes #8879
Fixes #12842
2025-12-16 19:29:16 +01:00
Joe Mooring
429e57201d
config/allconfig: Correct error message
...
Closes #14259
2025-12-15 18:09:57 +01:00
Joe Mooring
fa7d37f0c8
tpl: Add missing functions to init files
...
Closes #14249
2025-12-13 18:32:26 +01:00
Bjørn Erik Pedersen
fae49a22f1
github: Add some known humans to the AI whitelist
2025-12-13 18:29:28 +01:00
dependabot[bot]
364d237b51
build(deps): bump golang.org/x/image from 0.33.0 to 0.34.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/image/compare/v0.33.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-10 12:12:56 +01:00
dependabot[bot]
079f3eb8d1
build(deps): bump golang.org/x/tools from 0.39.0 to 0.40.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-09 10:33:42 +01:00
dependabot[bot]
4e6f2b6791
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.7 to 2.24.8
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.7 to 2.24.8.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.7...v2.24.8 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-09 10:32:38 +01:00
dependabot[bot]
dff5e168a9
build(deps): bump gocloud.dev from 0.43.0 to 0.44.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.43.0...v0.44.0 )
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-version: 0.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-05 18:03:07 +01:00
dependabot[bot]
c82a035bf1
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.58.1 to 1.58.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.58.1...service/s3/v1.58.2 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.58.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-05 15:58:01 +01:00
dependabot[bot]
86b01eda10
build(deps): bump github.com/evanw/esbuild from 0.27.0 to 0.27.1
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.27.0 to 0.27.1.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.0...v0.27.1 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.27.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-05 15:57:45 +01:00
Bjørn Erik Pedersen
e2e64aeec5
Fix server rebuilds on editing content with Chinese terms
...
Fixes #14240
2025-12-05 15:53:48 +01:00
dependabot[bot]
9e7182e9e6
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.0 to 1.40.1
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.40.0 to 1.40.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.40.0...v1.40.1 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.40.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-04 09:59:53 +01:00
dependabot[bot]
cf3ad62c3b
build(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.2
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.9.1 to 1.10.2.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.9.1...v1.10.2 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-version: 1.10.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-04 09:59:04 +01:00
Bjørn Erik Pedersen
c1cc65fcb9
release: Skip pushing stable and docs update for pre-releases
2025-12-03 11:51:37 +01:00
Bjørn Erik Pedersen
663075920a
release: Support alpha, beta, and RC releases
2025-12-02 18:44:42 +01:00
Joe Mooring
596517a259
snap: Address snapcraft deprecations
2025-12-01 23:44:24 -08:00
dependabot[bot]
bf42138661
build(deps): bump github.com/goccy/go-yaml from 1.18.0 to 1.19.0
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.18.0 to 1.19.0.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-version: 1.19.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-01 12:05:55 +01:00
dependabot[bot]
57fecb6b71
build(deps): bump github.com/olekukonko/tablewriter from 1.1.1 to 1.1.2
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.1.1 to 1.1.2.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.1.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-01 12:05:40 +01:00
dependabot[bot]
6d0ab6a34e
build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2
...
Bumps [github.com/JohannesKaufmann/html-to-markdown/v2](https://github.com/JohannesKaufmann/html-to-markdown ) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases )
- [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v2.4.0...v2.5.0 )
---
updated-dependencies:
- dependency-name: github.com/JohannesKaufmann/html-to-markdown/v2
dependency-version: 2.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-01 12:04:55 +01:00
Bjørn Erik Pedersen
6be463b586
langs/i18n: Prefer languageCode when picking translation file
...
Fixes #14204
Closes #14217
Co-authored-by: Patrice Chalin <pchalin@gmail.com >
2025-11-28 21:24:28 +01:00
Bjørn Erik Pedersen
9e24b5645d
Add entitlements for WebAssembly for macOS Tahoe
...
Fixes #14220
2025-11-27 20:43:03 +01:00
Bjørn Erik Pedersen
45b67f6c18
testscripts: Move layouts file to new structure
2025-11-27 20:41:56 +01:00
Joe Mooring
5e649eb4d0
resources: Skip integration test if Dart Sass is not installed
2025-11-27 19:32:23 +01:00
dependabot[bot]
0de8f8607b
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.57.0 to 1.58.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.57.0...service/s3/v1.58.1 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.58.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-27 13:22:29 +01:00
Bjørn Erik Pedersen
3073fd5ccf
testing: Replace legacy config.toml with hugo.toml in most tests
2025-11-27 12:08:08 +01:00
Bjørn Erik Pedersen
b9b304a126
testing: Port integration tests to new templates structure
...
As introduced in v0.146.0. Keep some legecy test to preserve backwards compatibility.
2025-11-27 12:00:15 +01:00
Bjørn Erik Pedersen
8be30ef2cb
github: Correct dependabot => dependabot[bot]
2025-11-27 09:48:54 +01:00
Joe Mooring
565a10cbf0
config/privacy: Change GoogleAnalytics.RespectDoNotTrack default to true
...
Closes #13307
2025-11-27 09:46:53 +01:00
Bjørn Erik Pedersen
438f113f83
Add signed and notarized MacOS pkg builds
...
Closes #14135
2025-11-26 16:48:51 +01:00
Bjørn Erik Pedersen
dab54058ea
Upgrade to Go 1.25.4
2025-11-26 16:38:47 +01:00
Joe Mooring
1a1b062a01
tpl/urls: Add PathEscape and PathUnescape functions
...
Closes #14209
2025-11-25 23:53:04 +01:00
Bjørn Erik Pedersen
7a43b928a6
Fix slow server startup of very big content trees
...
As in content trees with 10 thousand of directories and more.
A benchmark with the bottle neck code in `helpers.ExtractAndGroupRootPaths`:
```
│ cmp20251125.bench │ fix-extractandgrouproot-14211.bench │
│ sec/op │ sec/op vs base │
ExtractAndGroupRootPaths-10 1282818.8µ ± 8% 493.8µ ± 38% -99.96% (p=0.002 n=6)
│ cmp20251125.bench │ fix-extractandgrouproot-14211.bench │
│ B/op │ B/op vs base │
ExtractAndGroupRootPaths-10 3343.8Ki ± 0% 146.3Ki ± 0% -95.63% (p=0.002 n=6)
│ cmp20251125.bench │ fix-extractandgrouproot-14211.bench │
│ allocs/op │ allocs/op vs base │
ExtractAndGroupRootPaths-10 20.043k ± 0% 2.979k ± 0% -85.14% (p=0.002 n=6)
```
For test project that started this (a 60k directory conent tree), the server startup with no rendering, wen from 1.5 minutes to less than 4 seconds:
```
hugop server --renderSegments none main ✚ ✖ ✱ ◼
Watching for changes in /Users/bep/dev/sites/hugotestsites/60k/content/{section0,section1,section10,section100,section101,section102,section103,section104,section105,section106,...}
Watching for changes in /Users/bep/dev/sites/hugotestsites/60k/layouts/_default
Watching for config changes in /Users/bep/dev/sites/hugotestsites/60k/config.toml
Start building sites …
hugo v0.153.0-DEV-7e27c303904ed8b221d6a5a4fc9a764bb7b2935b darwin/arm64 BuildDate=2025-11-25T15:02:58Z
│ EN
──────────────────┼────
Pages │ 0
Paginator pages │ 0
Non-page files │ 0
Static files │ 0
Processed images │ 0
Aliases │ 0
Cleaned │ 0
Built in 3884 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
```
Note that the output may be a little different and a little more verbose than before., but the information is correct and this implementation is significantly faster and simpler.
Fixes #14211
2025-11-25 22:55:25 +01:00
Bjørn Erik Pedersen
555dfa207a
Speedup and simplify page assembly for deeper content trees
...
This commit moves to a forked version go-radix (fork source has not had any updates in 3 years.), whith 2 notable changes:
* It's generic (using Go generics) and thus removes a lot of type conversions/assertions.
* It allows nodes to be replaced during walk, which allows to partition the tree for parallel processing without worrying about locking.
For this repo, this means:
* The assembly step now processes nested sections in parallel, which gives a speedup for deep content trees with a slight allocation penalty (see benchmarks below).
* Nodes that needs to be reinserted are inserted directly.
* Also, there are some drive-by fixes of some allocation issues, e.g. avoid wrapping mutexes in returned anonomous functions, a common source of hidden allocations.
```
│ master.bench │ perf-p3.bench │
│ sec/op │ sec/op vs base │
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=1/pagesPerSection=50-10 6.958m ± 3% 7.015m ± 3% ~ (p=0.589 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=100-10 14.25m ± 1% 14.56m ± 8% ~ (p=0.394 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=500-10 48.07m ± 3% 49.23m ± 3% ~ (p=0.394 n=6)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=6/pagesPerSection=100-10 66.66m ± 4% 66.47m ± 6% ~ (p=0.485 n=6)
AssembleDeepSiteWithManySections/depth=4/sectionsPerLevel=2/pagesPerSection=100-10 59.57m ± 4% 50.73m ± 5% -14.85% (p=0.002 n=6)
geomean 28.54m 27.92m -2.18%
│ master.bench │ perf-p3.bench │
│ B/op │ B/op vs base │
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=1/pagesPerSection=50-10 4.513Mi ± 0% 4.527Mi ± 0% +0.33% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=100-10 15.35Mi ± 0% 15.49Mi ± 0% +0.94% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=500-10 62.50Mi ± 0% 63.19Mi ± 0% +1.10% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=6/pagesPerSection=100-10 86.78Mi ± 0% 87.73Mi ± 0% +1.09% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=4/sectionsPerLevel=2/pagesPerSection=100-10 62.96Mi ± 0% 63.66Mi ± 0% +1.12% (p=0.002 n=6)
geomean 29.84Mi 30.11Mi +0.92%
│ master.bench │ perf-p3.bench │
│ allocs/op │ allocs/op vs base │
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=1/pagesPerSection=50-10 60.44k ± 0% 60.97k ± 0% +0.87% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=100-10 205.8k ± 0% 211.4k ± 0% +2.70% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=500-10 831.1k ± 0% 858.3k ± 0% +3.27% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=6/pagesPerSection=100-10 1.157M ± 0% 1.197M ± 0% +3.41% (p=0.002 n=6)
AssembleDeepSiteWithManySections/depth=4/sectionsPerLevel=2/pagesPerSection=100-10 839.9k ± 0% 867.8k ± 0% +3.31% (p=0.002 n=6)
geomean 398.5k 409.3k +2.71%
```
2025-11-25 11:37:05 +01:00
Joe Mooring
3d21b0687b
markup/asciidocext: Improve Asciidoctor integration
...
Fixes an issue where improper attribute derivation from the page's
relative permalink caused failures with `outdir`, `imagesoutdir`, and
`imagesdir` when `markup.asciidocext.workingFolderCurrent` is enabled.
The updated logic now correctly handles:
- Multi-byte characters
- Multilingual multi-host sites
- Site builds from a subdirectory
- Pages using ugly URLs
Supports diagram caching as implemented in v3.1.0 of the asciidoctor-diagram
extension:
- Enables caching by default
- Sets default cache location to the compiled value of caches.misc.dir
Reduces duration of integration tests by:
- Generating GoAT diagrams instead of Ditaa diagrams
- Taking advantage of asciidoctor-diagram caching
Closes #9202
Closes #10183
Closes #10473
Closes #14160
2025-11-24 23:03:53 +01:00
Bjørn Erik Pedersen
34b0c15a54
gemini: Remove styleguide.md (for now)
2025-11-24 21:00:24 +01:00
Bjørn Erik Pedersen
9dc38e917c
github: Reenable Gemini, but no auto code review
2025-11-24 20:37:19 +01:00
Bjørn Erik Pedersen
b592d34efe
github: Partition tests by their root
2025-11-24 19:42:28 +01:00
Bjørn Erik Pedersen
18a2afa519
github: Make the clean commands work
2025-11-24 19:04:33 +01:00
Bjørn Erik Pedersen
0b0c827d5b
github: Also test the root package (left out in previous commit)
2025-11-24 18:38:53 +01:00
Bjørn Erik Pedersen
30dc75e620
github: More disk space saving optimizations
2025-11-24 18:38:21 +01:00
Joe Mooring
6bc8e6f491
github: Add PR Template
2025-11-21 20:22:50 +01:00
Bjørn Erik Pedersen
cda4d75187
Adjust benchmark
2025-11-21 16:19:24 +01:00
Bjørn Erik Pedersen
84950ed2b2
tpl/openapi: Add support for OpenAPI external file references
...
Fixes #8067
2025-11-21 16:03:05 +01:00
dependabot[bot]
2b337cd212
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.56.3 to 1.57.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecs/v1.56.3...service/s3/v1.57.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.57.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-21 11:49:04 +01:00
dependabot[bot]
cc61d00df9
build(deps): bump golang.org/x/image from 0.32.0 to 0.33.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/image/compare/v0.32.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-21 11:48:42 +01:00
dependabot[bot]
8ef2c61985
build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.43.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.43.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-21 11:47:10 +01:00
Bjørn Erik Pedersen
a8ed613742
github: Skip dependabot for AI Watchdog workflow
2025-11-21 11:46:26 +01:00
dependabot[bot]
b91688034f
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.5 to 2.24.7
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.5 to 2.24.7.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.5...v2.24.7 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-21 11:27:13 +01:00
Bjørn Erik Pedersen
b971b7f911
github: Remove the 386 test step in GitHub test workflow
...
Fixes #14201
2025-11-21 11:00:50 +01:00
Bjørn Erik Pedersen
24210dcad9
github: Remove test binaries after CI test runs
2025-11-21 10:59:03 +01:00
Bjørn Erik Pedersen
b037b9300c
github: Fix "no space left on device" issue in CI
2025-11-20 14:26:52 +01:00
dependabot[bot]
268046732e
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.56.0 to 1.56.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.56.0...service/ecs/v1.56.3 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.56.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-20 10:39:15 +01:00
dependabot[bot]
8ce80f755d
build(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.38.0 to 0.39.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.38.0...v0.39.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-20 10:38:53 +01:00
dependabot[bot]
4baa95ba65
build(deps): bump github.com/tetratelabs/wazero from 1.10.0 to 1.10.1
...
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/tetratelabs/wazero/releases )
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
dependency-version: 1.10.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-20 10:36:59 +01:00
Bjørn Erik Pedersen
0f94274a28
github: Adjust watchdog run logic (now with correct spelling)
2025-11-19 16:01:38 +01:00
Bjørn Erik Pedersen
5f9c3a3e4c
github: Adjust watchdog run logic (again)
2025-11-19 15:59:33 +01:00
Bjørn Erik Pedersen
51d77a6ca8
github: Adjust watchdog run logic
2025-11-19 15:49:52 +01:00
Bjørn Erik Pedersen
d25b619ce2
github: Only run AI Watchdog when the PR is ready for review
2025-11-19 15:32:28 +01:00
dependabot[bot]
b81861fd21
build(deps): bump github.com/bits-and-blooms/bitset
...
Bumps [github.com/bits-and-blooms/bitset](https://github.com/bits-and-blooms/bitset ) from 1.22.0 to 1.24.4.
- [Release notes](https://github.com/bits-and-blooms/bitset/releases )
- [Commits](https://github.com/bits-and-blooms/bitset/compare/v1.22.0...v1.24.4 )
---
updated-dependencies:
- dependency-name: github.com/bits-and-blooms/bitset
dependency-version: 1.24.4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-19 13:55:59 +01:00
dependabot[bot]
15cce89e0e
build(deps): bump github.com/olekukonko/tablewriter from 1.1.0 to 1.1.1
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.1.0 to 1.1.1.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-19 13:28:46 +01:00
dependabot[bot]
187e683bb2
build(deps): bump golang.org/x/text from 0.30.0 to 0.31.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.30.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.31.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-19 13:28:05 +01:00
dependabot[bot]
432078a6af
build(deps): bump github.com/evanw/esbuild from 0.25.12 to 0.27.0
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.12 to 0.27.0.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.12...v0.27.0 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.27.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-19 13:24:04 +01:00
Bjørn Erik Pedersen
4a76d8c611
Update aiwatchdog.yml
2025-11-19 12:37:14 +01:00
Bjørn Erik Pedersen
d837eff08f
Update aiwatchdog.yml
2025-11-19 12:29:22 +01:00
Bjørn Erik Pedersen
323e306bd7
Update aiwatchdog.yml
2025-11-19 12:27:47 +01:00
Bjørn Erik Pedersen
2047638a2c
github: Add label to AI suspects and do not fail when confident
...
The latter is mostly to get the dependabot PRs through. We may add a filter to that later.
2025-11-19 12:13:11 +01:00
Bjørn Erik Pedersen
38efb702aa
github: Adjust AI Watchdog workflow to make it run PRs from forks
2025-11-18 20:31:04 +01:00
Bjørn Erik Pedersen
bdf8b1a915
github: Adjust workflow permissions
2025-11-18 19:37:32 +01:00
Bjørn Erik Pedersen
f33c1a3fdb
performance: Misc allocation improvements
...
```
│ stash.bench │ perf-allloc20251118.bench │
│ sec/op │ sec/op vs base │
CreateShortcodePlaceholders-10 54.16n ± ∞ ¹ 39.06n ± ∞ ¹ -27.87% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ stash.bench │ perf-allloc20251118.bench │
│ B/op │ B/op vs base │
CreateShortcodePlaceholders-10 52.00 ± ∞ ¹ 48.00 ± ∞ ¹ -7.69% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ stash.bench │ perf-allloc20251118.bench │
│ allocs/op │ allocs/op vs base │
CreateShortcodePlaceholders-10 2.000 ± ∞ ¹ 1.000 ± ∞ ¹ -50.00% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
````
2025-11-18 19:17:15 +01:00
Bjørn Erik Pedersen
fee095768c
hugolib/doctree: Simplify lock setup in SimpleThreadSafeTree to reduce read allocation
...
```
│ sec/op │ sec/op vs base │
SimpleThreadSafeTree/Get-10 45.80n ± 11% 27.71n ± 7% -39.51% (p=0.002 n=6)
SimpleThreadSafeTree/Insert-10 40.96n ± 1% 40.36n ± 0% -1.47% (p=0.002 n=6)
SimpleThreadSafeTree/LongestPrefix-10 47.12n ± 0% 32.60n ± 1% -30.81% (p=0.002 n=6)
geomean 44.54n 33.16n -25.57%
│ cmp152.bench │ perf-allloc20251118.bench │
│ B/op │ B/op vs base │
SimpleThreadSafeTree/Get-10 16.00 ± 0% 0.00 ± 0% -100.00% (p=0.002 n=6)
SimpleThreadSafeTree/Insert-10 8.000 ± 0% 8.000 ± 0% ~ (p=1.000 n=6) ¹
SimpleThreadSafeTree/LongestPrefix-10 16.00 ± 0% 0.00 ± 0% -100.00% (p=0.002 n=6)
````
2025-11-18 19:17:15 +01:00
Bjørn Erik Pedersen
56d7925a97
github: Add ai-watchdog workflow and update other workflows' versions
...
See #14147
2025-11-18 19:15:14 +01:00
dependabot[bot]
38608c7c14
build(deps): bump google.golang.org/api from 0.251.0 to 0.255.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.251.0 to 0.255.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.251.0...v0.255.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.255.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-18 12:14:13 +01:00
dependabot[bot]
d75f0dc6a5
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.54.4 to 1.56.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.54.4...service/s3/v1.56.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.56.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-18 12:14:02 +01:00
dependabot[bot]
579362efd4
build(deps): bump github.com/tetratelabs/wazero from 1.9.0 to 1.10.0
...
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/tetratelabs/wazero/releases )
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
dependency-version: 1.10.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-18 12:12:04 +01:00
Joe Mooring
c6b6910a79
tpl/collections: Improve collections.D
...
Changes:
- If n > hi, return the full, sorted range [0, hi) of size hi.
- Throw errors when seed, n, or hi are < 0
- Improve error messages
Closes #14143
2025-11-18 11:42:33 +01:00
Bjørn Erik Pedersen
ca4025405c
Optimize memory allocations for sites matrix vector stores
...
By
* Caching common sites matrix setups (e.g. the single site in single site setups).
* Adding a fast path to IntSets.HasAnyVector for the common case of single vector input.
```
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10 31.62m ± 46% 30.68m ± 42% ~ (p=0.310 n=6)
│ master.bench │ perfcommon.bench │
│ B/op │ B/op vs base │
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10 31.98Mi ± 0% 31.24Mi ± 0% -2.30% (p=0.002 n=6)
│ master.bench │ perfcommon.bench │
│ allocs/op │ allocs/op vs base │
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10 460.9k ± 0% 419.9k ± 0% -8.90% (p=0.002 n=6)
````
2025-11-17 16:01:37 +01:00
Bjørn Erik Pedersen
44b5f13f86
gemini: Disable auto PR codereviews for now
...
I'm assuming it's still possible to trigger commands like `/gemini review` manually.
2025-11-17 14:50:41 +01:00
Jordan Elver
5af311284a
docs: Fix link to CGO wiki page
...
The Go wiki is no longer hosted on GitHub, and has moved to go.dev. See https://github.com/golang/go/wiki/
2025-11-17 14:14:47 +01:00
Joe Mooring
9d80c3978f
github: Update asciidoctor-diagrams extension and add GoAT
2025-11-16 12:36:05 -08:00
Bjørn Erik Pedersen
62c47407b2
Fix grammatical error in styleguide.md
2025-11-16 20:25:33 +01:00
Bjørn Erik Pedersen
2c6574ebdb
Update styleguide.md
2025-11-16 20:05:32 +01:00
Bjørn Erik Pedersen
60c4245e67
Add gemini setup files
2025-11-16 19:30:46 +01:00
Ahamed_Meyan
5e6b269c41
static: Preserve .gitignore and .gitattributes in --cleanDestinationDir
...
Fixes #14097
2025-11-16 11:10:20 +01:00
Bjørn Erik Pedersen
94a6233aab
hugolib: Fix recently introduced data race
...
This introduces a new thread safe maps.Map type to avoid abusing the exsting maps.Cache for regular map uses.
Fixes #14140
2025-11-15 21:17:42 +01:00
Bjørn Erik Pedersen
26f31ff6ce
hugolib: Improve performance of content trees with many sections
...
Hugo's build process is roughly divided into three steps:
1. Process content (walk file system and insert source nodes into content tree)
2. Assemble content (assemble pages and resources according to sites matrix)
3. Render content
In #13679 we consolidated the page creation logic into one place (the assemble step). This made it much simpler to reason about, but it lost us some performance esp. in big content trees.
This commit re-introduces parallelization in the first step in the assemble step by handling each top level section in its own goroutine. This gives significant performance improvements for content trees with many sections.
Compared to master:
```
AssembleDeepSiteWithManySections/depth=1/sectionsPerLevel=6/pagesPerSection=100-10 19.26m ± ∞ ¹ 14.54m ± ∞ ¹ -24.52% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=2/pagesPerSection=100-10 19.74m ± ∞ ¹ 16.45m ± ∞ ¹ -16.71% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=2/sectionsPerLevel=6/pagesPerSection=100-10 106.18m ± ∞ ¹ 71.23m ± ∞ ¹ -32.91% (p=0.029 n=4)
AssembleDeepSiteWithManySections/depth=3/sectionsPerLevel=2/pagesPerSection=100-10 38.85m ± ∞ ¹ 30.47m ± ∞ ¹ -21.59% (p=0.029 n=4)
```
2025-11-14 11:24:31 +01:00
Joe Mooring
bca171b691
markup/asciidocext: Support boolean document attributes
...
Closes #14138
2025-11-13 19:04:21 +01:00
Joe Mooring
9289aa43aa
github: Allow AsciiDoc content in tests to render Ditaa diagrams
...
In 2c80dee358 we enabled rendering of
PlantUML diagrams within integration tests. This commit removes PlantUML
support from the tests in favor of rendering Ditaa diagrams, which take
less time to generate.
2025-11-12 22:48:43 +01:00
Bjørn Erik Pedersen
606415ec18
Add a site assembly benchmark test for a deeper site structure with more sections and pages
2025-11-12 18:26:52 +01:00
Bjørn Erik Pedersen
dc2f6ae27a
sitesmatrix: Clary default dimension values
...
And make the default content version `v.1.0.0`. It has not much practical difference, but this encourages semver usage.
2025-11-12 13:00:55 +01:00
Bjørn Erik Pedersen
a0944ac7a4
Run go mod tidy to clean up go.mod and go.sum
2025-11-12 12:58:30 +01:00
Bjørn Erik Pedersen
22d0c17e82
docshelper: Fix some YAML serialization issues with sites matrix configuration
...
Fixes #14132
2025-11-11 13:49:31 +01:00
David Karlsson
25c7c18f9f
resources/page: Fix slugorcontentbasename for section pages
...
The slugorcontentbasename permalink token was creating an extra
subdirectory for section pages (_index.md files). This was because
pageToPermalinkContentBaseName did not have the same special handling
for _index.md files as pageToPermalinkFilename.
This commit adds the special handling to return an empty string for
section pages, ensuring backward compatibility with slugorfilename.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
Fixes #14104
2025-11-10 17:03:26 +01:00
dependabot[bot]
0e8f88fa72
build(deps): bump github.com/evanw/esbuild from 0.25.11 to 0.25.12
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.11 to 0.25.12.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.11...v0.25.12 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.12
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 12:36:36 +01:00
Bjørn Erik Pedersen
a2469d504e
testing: Rewrite all the old style integration tests to txtar style tests
...
And remove some not worth keeping (or too much work to convert).
2025-11-10 12:00:58 +01:00
Alexandru Grigore
0efcb24c37
commands: newDocsHelper encode integers as ints in generated YAML
...
Previously the JSON -> map roundtrip produced float64 values which caused the YAML encoder to emit integers like 404.0 instead of 404. Use the YAML encoder option yaml.AutoInt() so numbers that are integer-valued are encoded as integers.
This change affects the
ewDocsHelper command (commands/gen.go) where the docs data is written to docs/data/docs.yaml. After this change generated YAML will contain integer values (e.g. status: 404) instead of floats (e.g. status: 404.0).
Fixes #14122
2025-11-09 23:01:16 +01:00
Joe Mooring
e1236e3d0d
config: Add struct tags to deprecated and unused fields
...
This will remove these fields from the output of newDocsHelper.
2025-11-09 12:59:46 +01:00
Bjørn Erik Pedersen
e24b604c30
hugolib: Delete some old integration tests
...
We have had several had several integration test setups over the years. What we have now, backed by txtar files, has been working very well for a long time.
The tests deleted here may lose us some coverage, but they are painful to maintain and it's unlikely that we will port them to the new setup.
2025-11-07 19:44:58 +01:00
Bjørn Erik Pedersen
4c7a78f5ca
testing: Revise usage of b.N and b.Loop() in benchmarks
2025-11-07 13:33:39 +01:00
Bjørn Erik Pedersen
91eac9e573
all: Fix some benchmarks broken by modernize
...
It's not possible to use `b.Loop()` when `b.N` is used to prepare test data.
See 264022a75a
See #14107
2025-11-06 10:43:12 +01:00
Bjørn Erik Pedersen
04650ce778
all: Run modernize -fix ./...
...
Closes #14107
2025-11-05 21:05:42 +01:00
Bjørn Erik Pedersen
264022a75a
Add roles and versions as new dimensions (in addition to language)
...
See the main issue #13776 for details.
Fixes #519
Fixes #13680
Fixes #13663
Fixes #13776
Fixes #13855
Fixes #13648
Fixes #13996
Fixes #14001
Fixes #14031
Fixes #13818
Fixes #13196
2025-11-05 20:39:25 +01:00
Bjørn Erik Pedersen
ff0f67ea7f
Update CONTRIBUTING.md
2025-11-04 10:57:26 +01:00
Joe Mooring
2c80dee358
github: Allow AsciiDoc content in tests to render diagrams
2025-10-31 12:47:40 -07:00
Bjørn Erik Pedersen
e9bda21ce9
hreflect: Cache reflect method lookups used in collections.Where and others
...
We already cached the method index on the struct, but caching the resolved `reflect.Method` itself saves us from having to do another lookup on each call, which is escpeciall import in the hot path used by collections.Where and otherrs:
```bash
│ master.bench │ fix-reflectmethodcache.bench │
│ sec/op │ sec/op vs base │
WhereSliceOfStructPointersWithMethod-10 592.2µ ± ∞ ¹ 390.1µ ± ∞ ¹ -34.14% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ master.bench │ fix-reflectmethodcache.bench │
│ B/op │ B/op vs base │
WhereSliceOfStructPointersWithMethod-10 205.14Ki ± ∞ ¹ 64.52Ki ± ∞ ¹ -68.55% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95
│ master.bench │ fix-reflectmethodcache.bench │
│ allocs/op │ allocs/op vs base │
WhereSliceOfStructPointersWithMethod-10 9.003k ± ∞ ¹ 4.503k ± ∞ ¹ -49.98% (p=0.029 n=4)
````
2025-10-27 15:45:50 +01:00
Bjørn Erik Pedersen
3893e70510
all: Simplify the reflect usage
...
* Use helper funcs in hreflect package when possible.
* Use hreflect.ConvertIfPossible to handle conversions when possible.
* Move scratch.go from common/maps to common/hstore to clear cyclic import in the next step.
* Move Indirect to hreflect and reimplementing it and adusting the behavior to preserve struct pointers.
* Adjust evaluateSubElem used by where and others making the struct pointer method case slightly faster.
2025-10-26 17:36:58 +01:00
hugoreleaser
b95f7d2552
releaser: Prepare repository for 0.153.0-DEV
...
[ci skip]
2025-10-24 15:44:59 +00:00
hugoreleaser
6abdacad3f
releaser: Bump versions for release of 0.152.2
...
[ci skip]
2025-10-24 15:31:49 +00:00
Joe Mooring
1c8c21e45e
deps: Update github.com/tdewolff/minify v2.24.4 => v2.24.5
...
Closes #14086
2025-10-24 17:28:42 +02:00
Bjørn Erik Pedersen
809ebe01fa
hugofs: Make node_modules a "special case" mount
...
For this and similar mounts in a theme:
```toml
[[module.mounts]]
source = 'node_modules/bootstrap'
target = 'assets/vendor/bootstrap'
```
We first check the theme itself, then the project root.
For backwards compatibility, we also make any `../../node_modules/...` `source` paths into `node_modules/...` paths when defined in themes/modules.
Fixes #14089
2025-10-24 17:12:46 +02:00
Jordan Elver
08a0679a89
github: Fix typo in stale PR message
2025-10-24 14:30:48 +02:00
hugoreleaser
524b98665b
releaser: Prepare repository for 0.153.0-DEV
...
[ci skip]
2025-10-22 19:24:59 +00:00
hugoreleaser
5869cbddd8
releaser: Bump versions for release of 0.152.1
...
[ci skip]
2025-10-22 19:10:44 +00:00
Bjørn Erik Pedersen
e08278d165
Expand the numeric conversions to template funcs/methods
...
So the example mentioned in #14079 also works for TOML and JSON front matter.
See #14079
2025-10-22 21:04:39 +02:00
Bjørn Erik Pedersen
df4f80d54f
Fix where with uint64
...
Fixes #14081
2025-10-22 21:04:39 +02:00
Bjørn Erik Pedersen
d4c78885ae
Fix it so YAML integer types can be used where Go int types are expected
...
E.g. in date.AddDate.
In Hugo v0.152.0 we moved to a new YAML library (github.com/goccy/go-yaml) which produces uint64 for unsigned integers.
This unfortunately breaks common constructs like:
.Date.AddDate 0 0 7
when .Date is a time.Time and the integers are unmarshaled from YAML front matter.
This commit adds code to handle conversion from uint64 (and other int types) to the required int types where possible.
Fixes #14079
2025-10-22 21:04:39 +02:00
Bjørn Erik Pedersen
29e2c2fa92
tpl/compare: Fix compare/sort of uint64s
...
`uint64` is used by github.com/goccy/go-yaml for unsigned integers, which is the reason why this long-living bug has surfaced now.
Fixes #14078
2025-10-22 13:40:03 +02:00
Bjørn Erik Pedersen
0579afc3c5
Fix "assignment to entry in nil map" on empty YAML config files
...
Fixes #14074
2025-10-22 13:40:03 +02:00
hugoreleaser
0ccbc63ab8
releaser: Prepare repository for 0.153.0-DEV
...
[ci skip]
2025-10-21 16:43:50 +00:00
hugoreleaser
06bc2c16c0
releaser: Bump versions for release of 0.152.0
...
[ci skip]
2025-10-21 16:29:49 +00:00
Bjørn Erik Pedersen
d51adca26a
Merge branch 'release-0.151.2'
2025-10-21 16:08:23 +02:00
Bjørn Erik Pedersen
a1307700dd
config: Clone language map entries before modifying them
...
Now, with YAML anchor and alias support, these can point to shared data,
which must not be modified in place.
Fixes #14072
2025-10-21 13:34:15 +02:00
Bjørn Erik Pedersen
9425b939c6
Skip flaky test for now
...
See #14072
2025-10-21 10:32:52 +02:00
Bjørn Erik Pedersen
bd50c9c7e7
Misc YAML adjustments
...
Closes #14067
2025-10-20 16:05:05 +02:00
Bjørn Erik Pedersen
a8e0ca9254
hugofs: Make sure that non-project module mounts are local paths
...
Fixes #14069
2025-10-19 20:27:10 +02:00
Joe Mooring
559a029de7
langs/i18n: Improve reserved key error message
...
Closes #14061
2025-10-19 13:47:04 +02:00
Bjørn Erik Pedersen
184b10ed45
deps: Upgrade github.com/gohugoio/go-i18n/v2
...
Gets the fork line with https://github.com/nicksnyder/go-i18n/commit/28dedbee2baafdef1b89b46fc5b729d09232e245 + patch.
2025-10-18 18:21:14 +02:00
Bjørn Erik Pedersen
5bad0d523e
langs: Add test case using a "reserved" i18n code
...
See #14061
2025-10-18 15:28:33 +02:00
Bjørn Erik Pedersen
a3d9548469
Replace to gopkg.in/yaml with github.com/goccy/go-yaml (note)
...
This commit also adds validation to prevent the "Billion Laughs" attack (see https://github.com/goccy/go-yaml/issues/461 ). The limit of non-scalar aliases to the same node is set to 10,000. See benchmarks below.
``` │ sec/op │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10 125.2µ ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10 655.8µ ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10 9.223µ ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10 9.443µ ± ∞ ¹
geomean 51.71µ
¹ need >= 6 samples for confidence interval at level 0.95
│ fix-goyaml-8822.bench │
│ B/op │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10 177.0Ki ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10 177.0Ki ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10 11.67Ki ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10 11.67Ki ± ∞ ¹
geomean 45.45Ki
¹ need >= 6 samples for confidence interval at level 0.95
│ fix-goyaml-8822.bench │
│ allocs/op │
UnmarshalBillionLaughs/Billion_Laughs_no_validation-10 3.302k ± ∞ ¹
UnmarshalBillionLaughs/Billion_Laughs_with_validation-10 3.305k ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_no_validation-10 253.0 ± ∞ ¹
UnmarshalBillionLaughs/YAML_Front_Matter_with_validation-10 253.0 ± ∞ ¹
````
Fixes #8822
Fixes #13043
Fixes #14053
Fixes ##8427
2025-10-18 13:52:22 +02:00
dependabot[bot]
9e344bbe49
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.3 to 2.24.4
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.3 to 2.24.4.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.3...v2.24.4 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-17 18:44:56 +02:00
hugoreleaser
1ec0e2ebec
releaser: Prepare repository for 0.152.0-DEV
...
[ci skip]
2025-10-16 17:06:05 +00:00
hugoreleaser
a3574f6f70
releaser: Bump versions for release of 0.151.2
...
[ci skip]
2025-10-16 16:52:34 +00:00
Bjørn Erik Pedersen
989454a52d
parser/pageparser: Add a testcase for nested shortcodes of the same name
...
See #14054
2025-10-16 18:50:02 +02:00
Bjørn Erik Pedersen
1e91e46520
parser/pageparser: Fix shortcode nesting regression
...
This reverts commit a133393eda .
While that commit fixed a bug, it introduced a worse one.
Closes #14054
2025-10-16 18:50:02 +02:00
Bjørn Erik Pedersen
8a57d0f15f
testscripts: Add and improve commands tests for static mounts
2025-10-16 12:39:11 +02:00
hugoreleaser
b76c50ac18
releaser: Prepare repository for 0.152.0-DEV
...
[ci skip]
2025-10-15 15:06:42 +00:00
hugoreleaser
1cdd17882c
releaser: Bump versions for release of 0.151.1
...
[ci skip]
2025-10-15 14:51:34 +00:00
Bjørn Erik Pedersen
e2fb0b0e80
Upgrade Go to 1.25.3
...
See https://go.dev/doc/devel/release#go1.25.3
2025-10-15 13:00:33 +02:00
Kazuo Oishi
88aea56683
tpl: Fix strings/truncate CJK handling
...
Fix truncate position for mix of CJK and non-CJK text.
Fixes #14039
2025-10-15 13:00:10 +02:00
dependabot[bot]
f4c11571bb
build(deps): bump github.com/gohugoio/hashstructure from 0.5.0 to 0.6.0
...
Bumps [github.com/gohugoio/hashstructure](https://github.com/gohugoio/hashstructure ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/gohugoio/hashstructure/releases )
- [Commits](https://github.com/gohugoio/hashstructure/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hashstructure
dependency-version: 0.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-15 11:00:35 +02:00
dependabot[bot]
54075acc29
build(deps): bump golang.org/x/image from 0.30.0 to 0.32.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.30.0 to 0.32.0.
- [Commits](https://github.com/golang/image/compare/v0.30.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-15 10:59:28 +02:00
dependabot[bot]
8b52303e31
build(deps): bump github.com/evanw/esbuild from 0.25.10 to 0.25.11
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.10 to 0.25.11.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.10...v0.25.11 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.11
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-15 10:57:33 +02:00
dependabot[bot]
3d45d30a41
build(deps): bump golang.org/x/tools from 0.37.0 to 0.38.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.37.0 to 0.38.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-14 22:10:08 +02:00
dependabot[bot]
095157cd65
build(deps): bump golang.org/x/mod from 0.28.0 to 0.29.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/mod/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.29.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-14 16:34:43 +02:00
Sardorbek Imomaliev
29cf87444f
create/skeletons: Wrap section and home lists with section tags
...
Avoiding issues with tag leakage when using .Summary
See issue #14044 for details.
2025-10-14 11:54:45 +02:00
Joe Mooring
1b4dd436dd
markup/goldmark: Align blockquote default output with Goldmark
...
Closes #14046
2025-10-14 09:38:29 +02:00
Bjørn Erik Pedersen
4414ef73f3
parser/pageparser: Store shortcode names as unique.Handle[string] to save memory allocations
...
```
│ stash.bench │ perf-pagelexer.bench │
│ sec/op │ sec/op vs base │
ShortcodeLexer-10 68.87µ ± ∞ ¹ 65.91µ ± ∞ ¹ ~ (p=0.200 n=4)
Parse-10 7.421µ ± ∞ ¹ 7.030µ ± ∞ ¹ -5.28% (p=0.029 n=4)
HasShortcode/Match-10 70.42n ± ∞ ¹ 77.37n ± ∞ ¹ +9.86% (p=0.029 n=4)
HasShortcode/NoMatch-10 14.32n ± ∞ ¹ 14.38n ± ∞ ¹ ~ (p=0.086 n=4)
geomean 847.2n 847.3n +0.01%
¹ need >= 6 samples for confidence interval at level 0.95
│ stash.bench │ perf-pagelexer.bench │
│ B/op │ B/op vs base │
ShortcodeLexer-10 181.3Ki ± ∞ ¹ 177.4Ki ± ∞ ¹ -2.19% (p=0.029 n=4)
Parse-10 24.56Ki ± ∞ ¹ 24.19Ki ± ∞ ¹ -1.53% (p=0.029 n=4)
HasShortcode/Match-10 0.000 ± ∞ ¹ 0.000 ± ∞ ¹ ~ (p=1.000 n=4) ²
HasShortcode/NoMatch-10 0.000 ± ∞ ¹ 0.000 ± ∞ ¹ ~ (p=1.000 n=4) ²
geomean ³ -0.93% ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean
│ stash.bench │ perf-pagelexer.bench │
│ allocs/op │ allocs/op vs base │
ShortcodeLexer-10 1004.0 ± ∞ ¹ 921.0 ± ∞ ¹ -8.27% (p=0.029 n=4)
Parse-10 34.00 ± ∞ ¹ 14.00 ± ∞ ¹ -58.82% (p=0.029 n=4)
HasShortcode/Match-10 0.000 ± ∞ ¹ 0.000 ± ∞ ¹ ~ (p=1.000 n=4) ²
HasShortcode/NoMatch-10 0.000 ± ∞ ¹ 0.000 ± ∞ ¹ ~ (p=1.000 n=4) ²
```
2025-10-05 19:06:46 +02:00
Bjørn Erik Pedersen
a133393eda
parser/pagerparser: Fix closing shortcode error handling when repeated
2025-10-05 19:06:46 +02:00
Bjørn Erik Pedersen
9197debbfe
testscripts: Make test assertion less specific
2025-10-05 18:08:52 +02:00
hugoreleaser
c29897fac0
releaser: Prepare repository for 0.152.0-DEV
...
[ci skip]
2025-10-02 13:45:36 +00:00
hugoreleaser
c70ab27ceb
releaser: Bump versions for release of 0.151.0
...
[ci skip]
2025-10-02 13:30:36 +00:00
Bjørn Erik Pedersen
510d98b778
Adjust the terminal progress reporter a little
...
Mostly to reduce the amount of OSC 9;4 sequences written to stdout.
2025-10-02 14:57:42 +02:00
Andrii Chubatiuk
7fd6762c16
transform/livereloadinject: Skip livereload.js injection if no tags found (note)
...
This change is mainly motivated to support sites built by HTML fragments with e.g. a JS framework.
Now we don't inject the script if we don't find any of `doctype` (the only one required by the HTML 5 spec), `html` or `head`.
Co-authored-by: bep <bjorn.erik.pedersen@gmail.com >
2025-10-02 13:39:35 +02:00
dependabot[bot]
584f052f39
build(deps): bump google.golang.org/api from 0.248.0 to 0.251.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.248.0 to 0.251.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.248.0...v0.251.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.251.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-01 23:05:48 +02:00
dependabot[bot]
b76d71761e
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.53.0 to 1.54.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.53.0...service/s3/v1.54.4 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.54.4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-01 23:05:36 +02:00
Bjørn Erik Pedersen
c5dca3bdee
Add transform.HTMLToMarkdown
...
Fixes #13946
2025-10-01 19:17:26 +02:00
Bjørn Erik Pedersen
ec463c0977
Report OSC 9;4 progress when building
...
As supported by the Ghostty terminal and others.
2025-10-01 14:27:23 +02:00
dependabot[bot]
4d2743e4c8
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.38.1 to 1.39.2
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.38.1 to 1.39.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.38.1...v1.39.2 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.39.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-30 21:13:50 +02:00
dependabot[bot]
c20f70d9a3
build(deps): bump golang.org/x/tools from 0.36.0 to 0.37.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.36.0 to 0.37.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.36.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-30 21:11:37 +02:00
dependabot[bot]
1b556216a8
build(deps): bump github.com/spf13/afero from 1.14.0 to 1.15.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-30 21:11:14 +02:00
dependabot[bot]
106c8e6de6
build(deps): bump github.com/tdewolff/minify/v2 from 2.24.2 to 2.24.3
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.24.2 to 2.24.3.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.24.2...v2.24.3 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-30 21:10:54 +02:00
Bjørn Erik Pedersen
03b33ecb5e
Fix file caching for 404 responses in resources.GetRemote
...
Fixes #14019
2025-09-30 20:43:05 +02:00
dependabot[bot]
9928122eb8
build(deps): bump github.com/evanw/esbuild from 0.25.9 to 0.25.10
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.9 to 0.25.10.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.9...v0.25.10 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.10
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-30 17:43:39 +02:00
Dr. Tobias Quathamer
105d3bc32f
tpl: Workaround s390x precision of Atan and Tan
...
On s390x, math.Atan(1) and math.Tan(1) give values that slightly differ
from other architectures, causing TestTemplateFuncsExamples to fail.
The golang math package states in the overview:
"This package does not guarantee bit-identical results across architectures."
2025-09-29 17:09:29 +02:00
Bjørn Erik Pedersen
3e46ba5ce2
cache/httpcache: Add respectCacheControlNoStoreInResponse and respectCacheControlNoStoreInRequest options
...
This cache is used by `resources.GetRemote`.
Default values are:
* respectCacheControlNoStoreInResponse: false
* respectCacheControlNoStoreInRequest: true
This is a slightly breaking change, but the current behaviour is confusing, as:
* Many servers set the `no-store` header without much consideration, see https://developer.chrome.com/docs/web-platform/bfcache-ccns for more context
* We almost always want to cache the `resources.GetRemote` to disk.
Fixes #13990
2025-09-29 17:06:50 +02:00
Bjørn Erik Pedersen
4d1303512b
common/hreflect: Speed up IsTrutfulValue
...
By caching the calculation of whether a type implements `IsZero`:
```
IsTruthFulVAlue-10 467.95n ± ∞ ¹ 79.13n ± ∞ ¹ -83.09% (p=0.029 n=4)
```
2025-09-29 17:06:50 +02:00
dependabot[bot]
9943c1bef0
build(deps): bump golang.org/x/text from 0.28.0 to 0.29.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.29.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-29 15:09:06 +02:00
dependabot[bot]
766757310a
build(deps): bump github.com/olekukonko/tablewriter from 1.0.9 to 1.1.0
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.0.9 to 1.1.0.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.0.9...v1.1.0 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.1.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-29 15:08:34 +02:00
dependabot[bot]
d71c07cf3c
build(deps): bump github.com/spf13/cast from 1.9.2 to 1.10.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.9.2 to 1.10.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.9.2...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-version: 1.10.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-29 15:07:36 +02:00
Joe Mooring
b462980ac2
markup/goldmark: Enhance footnote extension with backlinkHTML option
...
This commit introduces a new option, backlinkHTML, to the Goldmark
footnote extension. This allows users to the set custom text for
footnote backlink anchors.
Closes #11434
2025-09-29 12:21:17 +02:00
Joe Mooring
47678d8cbd
markup/goldmark: Enhance footnote extension with auto-prefixing option
...
This commit introduces a new option, enableAutoIDPrefix, to the Goldmark
footnote extension. When enabled, it prepends a unique prefix to
footnote IDs, preventing clashes when multiple documents are rendered
together. This prefix is unique to each logical path, which means that
the prefix is not unique across content dimensions such as language.
This change also refactors the extension's configuration from a boolean
to a struct.
Closes #8045
2025-09-27 18:16:42 +02:00
hugoreleaser
18b9b6488b
releaser: Prepare repository for 0.151.0-DEV
...
[ci skip]
2025-09-25 10:45:05 +00:00
hugoreleaser
ce44a8e835
releaser: Bump versions for release of 0.150.1
...
[ci skip]
2025-09-25 10:26:04 +00:00
Joe Mooring
64f40731f1
hugolib: Change duplicate content path warning to an info log
...
Improves #13993
2025-09-20 20:13:08 +02:00
Joe Mooring
1140314be1
hugolib: Restore integration test
...
Closes #13991
2025-09-18 18:02:13 +02:00
Joe Mooring
404fd9e512
commands: Map --minify CLI flag to the correct configuration key
...
Closes #13988
2025-09-18 16:50:47 +02:00
Max Kapur
b1b0cdee3a
snap: Add desktop plug
2025-09-18 06:22:39 -07:00
Max Kapur
3eea082903
test(deps): Update setup-ruby action to v1.257.0
2025-09-17 09:30:21 -07:00
hugoreleaser
0f18cbe990
releaser: Prepare repository for 0.151.0-DEV
...
[ci skip]
2025-09-08 13:16:24 +00:00
hugoreleaser
3f5473b7d4
releaser: Bump versions for release of 0.150.0
...
[ci skip]
2025-09-08 13:01:12 +00:00
dependabot[bot]
d1f6a1dc59
build(deps): bump golang.org/x/mod from 0.27.0 to 0.28.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/mod/compare/v0.27.0...v0.28.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.28.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-08 11:23:39 +02:00
Bjørn Erik Pedersen
747cf4ad65
modules: Add support for direct version module imports in hugo.toml
...
Fixes #13964
2025-09-07 22:47:25 +02:00
Joe Mooring
d8774d7fc3
resources/page: Fix truncated summary logic
...
Fixes #13967
Fixes #13968
2025-09-07 11:07:41 +02:00
Joe Mooring
3b8947d821
config/security: Add PROGRAMDATA to the osenv allowlist
2025-09-06 18:11:38 +02:00
hugoreleaser
321a66ef19
releaser: Prepare repository for 0.150.0-DEV
...
[ci skip]
2025-09-04 14:18:57 +00:00
hugoreleaser
57a784e027
releaser: Bump versions for release of 0.149.1
...
[ci skip]
2025-09-04 14:04:46 +00:00
Lukáš Zapletal
25c0f2408a
Remove noindex meta tag from alias.html
...
Google does not behave as expected when an alias is used. It does not index the client-side alias page, but on top of that it also does not index the original page.
Google does not require noindex to be present and since alias pages do not have any content, it makes little sense to provide it. Therefore, this patch removes the line completely.
https://developers.google.com/search/docs/crawling-indexing/301-redirects
2025-09-04 15:58:23 +02:00
Bjørn Erik Pedersen
4f2d2b2cc4
Fix nilpointer on ToC heading
...
Fixes #11843
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-09-04 14:01:51 +02:00
Bjørn Erik Pedersen
b8eb45c9df
tpl/collections: Require collections.D args to be ints
...
Fixes #13952
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-09-04 14:01:51 +02:00
Bjørn Erik Pedersen
1d90afff1b
Upgrade to Go 1.25.1
...
Fixes #13960
2025-09-04 11:11:29 +02:00
PikachuTW
e751afa9bd
Fix config env handling for some slice options
...
Fixes #13950
2025-09-04 10:49:14 +02:00
Joe Mooring
a09b8a60eb
minifiers: Update deprecation handling
...
1. With minify.tdewolff.css and minify.tdewolff.svg, check
for "decimals" instead of "decimal"
2. Add deprecation messages for:
- minify.tdewolff.css.decimals
- minify.tdewolff.svg.decimals
- minify.tdewolff.html.keepconditionalcomments
- config root minify (bool)
- config root minifyoutput (bool)
3. Deprecate minify.tdewolff.css.keepcss2 in favor
of minify.tdewolff.css.version
4. Refactor minify configuration tests
Closes #11893
Closes #13947
Closes #13948
2025-09-03 10:56:32 +02:00
Bjørn Erik Pedersen
0071b47b8b
Update README.md
2025-09-01 17:11:08 +02:00
hugoreleaser
70d62993ee
releaser: Prepare repository for 0.150.0-DEV
...
[ci skip]
2025-08-27 15:51:44 +00:00
hugoreleaser
66240338f1
releaser: Bump versions for release of 0.149.0
...
[ci skip]
2025-08-27 15:37:16 +00:00
Bjørn Erik Pedersen
84b5123912
tpl/collections: Add an integration test for collections.D
...
Also
* improve the handling if invalid input
* add a sanity check for number of elements asked for in D (1000000).
2025-08-27 17:25:05 +02:00
Joe Mooring
2912415955
misc: Update Go version to 1.24.0 in README
...
Update Go version requirements for building Hugo.
2025-08-27 16:46:38 +02:00
Justus Perlwitz
bb4e66cd7c
create: Fix new content command with future dates
...
Fixes #12599
2025-08-27 09:33:17 +02:00
dependabot[bot]
45ec2f88bb
build(deps): bump github.com/getkin/kin-openapi from 0.132.0 to 0.133.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.132.0 to 0.133.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.132.0...v0.133.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.133.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-27 09:31:02 +02:00
Bjørn Erik Pedersen
1ba80874e4
tpl/collections: Add collections.D using Vitter's Method D for sequential random sampling
2025-08-26 20:37:08 +02:00
dependabot[bot]
84dd495f2b
build(deps): bump google.golang.org/api from 0.247.0 to 0.248.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.247.0 to 0.248.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.247.0...v0.248.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.248.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-26 09:54:26 +02:00
dependabot[bot]
327bbc613f
build(deps): bump github.com/evanw/esbuild from 0.25.6 to 0.25.9
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.6 to 0.25.9.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.6...v0.25.9 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-26 09:54:07 +02:00
dependabot[bot]
2447138f1d
build(deps): bump gocloud.dev from 0.40.0 to 0.43.0
...
Bumps [gocloud.dev](https://github.com/google/go-cloud ) from 0.40.0 to 0.43.0.
- [Release notes](https://github.com/google/go-cloud/releases )
- [Commits](https://github.com/google/go-cloud/compare/v0.40.0...v0.43.0 )
---
updated-dependencies:
- dependency-name: gocloud.dev
dependency-version: 0.43.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-25 20:47:05 +02:00
Bjørn Erik Pedersen
61ec7a20a5
commands: Deprecate --omitEmpty on chromastyles command
...
It's no longer needed -- empty classes are now always omitted.
See See https://github.com/alecthomas/chroma/commit/5b2a4c5a26c503c79bc86ba3c4ae5b330028bd3d
2025-08-25 18:24:07 +02:00
Bjørn Erik Pedersen
c289fcaaaa
commands: Add --omitClassComments to the chromastyles command
2025-08-25 18:24:07 +02:00
Bjørn Erik Pedersen
cfc38ecfed
deps: Upgrade github.com/alecthomas/chroma/v2 v2.19.0 => v2.20.0
...
CLoses #13917
2025-08-25 18:24:07 +02:00
dependabot[bot]
22e579e050
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
...
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2 ) from 1.44.10 to 1.53.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/macie2/v1.44.10...service/s3/v1.53.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
dependency-version: 1.53.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-25 15:32:19 +02:00
dependabot[bot]
b886615d1b
build(deps): bump github.com/tdewolff/minify/v2 from 2.23.11 to 2.24.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.23.11 to 2.24.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.23.11...v2.24.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.24.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-25 15:29:50 +02:00
minxinyi
ecdef2be70
all: Use slices.Equal
2025-08-24 20:35:18 +02:00
Bjørn Erik Pedersen
ff3ae62933
Merge commit 'bfa74537929f409fca841540b971125b7678963a'
2025-08-23 12:39:28 +02:00
Bjørn Erik Pedersen
bfa7453792
Squashed 'docs/' changes from 60dd993a6..71f739460
...
71f739460 content: Reformat procedures to use description lists instead of H3 elements
420a78802 content: Remove 21YunBox hosting guide
abeea342f content: Add hosting guide for Vercel
3aaca6c0a content: Add hosting guide for Render
d77b06aa6 content: Fix formatting
82885415f content: Change build.sh file perms in Cloudflare hosting docs
0569c68ca content: Fix typo
8f14be5da content: Remove duplicate list items
e76f17815 misc: Fix typo in configuration for the Markdown linter
32e450b7c misc: Fix typo in configuration for the Markdown linter
81bd0056a mics: Update configuration for the Markdown linter
480ae9014 content: Improve file names in the PageInner description
b17999021 content: Adjust Markdown to pass linter tests
1d9d56897 misc: Implement Markdown linter
91fc34c58 content: Miscellaneous edits
b7c60ae0b content: Add admonition for outdated learning resources
51b6df588 misc: Activate stale action
84a897f5f misc: Implement stale action
167ea9713 content: Update GitHub Pages workflow example
3672d9116 misc: Use actions/checkout@v5 in workflows
2f2b4c968 misc: Update spellcheck configs
55a8ff7ae content: Fix typo
36e3d7b7b Adjust sponsors
51014e6b9 content: Fix link
37cfc093f content: Add Cloudflare Worker hosting instructions
09862ffad content: Update hosting considerations related to GitInfo
477f3e7c0 misc: Update cspell config
7a7bb4874 content: Miscellaneous edits
48486d5ac content: Remove Cloudflare Pages documentation
382f8052d content: Remove KeyCDN documentation
8ecbc985c content: Update hosting workflow files
57fd362bf content: Clarify applicability of the slug front matter field
0dcfff9c7 content: Update directory-structure.md
58e3609a0 content: Fix typo
22fb43695 content: Fix search/replace errors
fba8342a8 content: Fix missing link refs
97e035006 Update netlify.toml
6ab5ae6df content: Improve GitLab Pages compression performance
172bfbc4b content: Differentiate content view templates from other templates
978770fc8 content: Clarify handling of goldmark extensions conflict
cb74aa4c7 content: Improve Codeberg Pages hosting instructions
794477792 content: Add custom domain instructions to Codeberg Pages setup
235fac27d content: Improve description of code block render hook options map
35a507d31 content: Improve WP2Hugo description
8191f4dcf content: Improve WP2Hugo description
25cca30fd content: Fix type
e955652ae content: Improve base template description
922aa91bd content: Improve description of partial lookup logic
072536ef6 content: Update template type documentation
5bf153531 Update netlify.toml
cdd20a433 content: Indicate language sort order for relevant page methods
fc9a868c9 content: Add Sitepins to list of commercial CMS platforms
b6077449c content: Update version references
b71388cac content: Fix typo
c27dfdef3 content: Move link reference
d008ea6ac content: Fix typo
040f14a3c content: Fix typo
1ac119d26 content: Fix typo
a5a4fa907 content: More updates for v0.148.0
b7247a8ea content: Remove command chaining from GitHub Actions workflow
6ecb96bcd content: Updates for v0.148.0
aea9e4c29 netlify: Update Hugo version
4e71546d1 Add Ancestors (plural) method to GitInfo, rename Ancestor field to Parent
68620a6c2 source: Expose Ancestor in GitInfo
git-subtree-dir: docs
git-subtree-split: 71f739460f
2025-08-23 12:36:13 +02:00
Dustin Fischer
12ace3ad5c
resources/page: Add :sectionslug and :sectionslugs permalink tokens
...
Add slugified section permalink tokens with fallback behavior and slice syntax support.
Fixes #13788
2025-08-23 12:35:21 +02:00
Bjørn Erik Pedersen
c14fdddada
Upgrade to Go 1.25
...
Fixes #13924
Fixes #13931
2025-08-22 18:17:10 +02:00
Bjørn Erik Pedersen
186934feb4
common/hcontext: Replace with external package
2025-08-22 09:13:46 +02:00
Bjørn Erik Pedersen
13b43e6117
Fix server rebuild when adding a new leaf bundle with resources in one go
...
E.g. `cp -r`.
Note that this was not an issue if you first created the bundle, waited, and then created the resource(s).
Fixes #13925
2025-08-21 21:52:31 +02:00
cui
bff4dddb12
resources/page: Use reflect.TypeFor
2025-08-20 13:20:14 +02:00
dependabot[bot]
885cd299b7
build(deps): bump github.com/tdewolff/minify/v2 from 2.23.8 to 2.23.11
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.23.8 to 2.23.11.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.23.8...v2.23.11 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.23.11
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-20 11:42:54 +02:00
Bjørn Erik Pedersen
80e973ea5c
Remove test with deprecated path usage
...
This now creates a warning and flaky CI tests.
2025-08-20 11:36:10 +02:00
dependabot[bot]
debf3c559a
build(deps): bump github.com/olekukonko/tablewriter from 1.0.8 to 1.0.9
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.0.8 to 1.0.9.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.0.8...v1.0.9 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.0.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-20 11:29:31 +02:00
Bjørn Erik Pedersen
01b0eda96c
Update README.md
2025-08-16 10:51:26 +02:00
Bjørn Erik Pedersen
87e100e61f
Fix rebuild when deleting a content adapter file
2025-08-15 17:32:42 +02:00
dependabot[bot]
1649f3126f
build(deps): bump google.golang.org/api from 0.237.0 to 0.247.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.237.0 to 0.247.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.237.0...v0.247.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.247.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-15 15:26:53 +02:00
dependabot[bot]
ccd6a4b71e
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.36.4 to 1.38.0
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.36.4 to 1.38.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.36.4...v1.38.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-15 14:51:29 +02:00
dependabot[bot]
6dc1a1752b
build(deps): bump golang.org/x/tools from 0.35.0 to 0.36.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.35.0 to 0.36.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.35.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.36.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-15 14:02:06 +02:00
dependabot[bot]
806d4848c3
build(deps): bump github.com/bep/simplecobra from 0.6.0 to 0.6.1
...
Bumps [github.com/bep/simplecobra](https://github.com/bep/simplecobra ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/bep/simplecobra/releases )
- [Commits](https://github.com/bep/simplecobra/compare/v0.6.0...v0.6.1 )
---
updated-dependencies:
- dependency-name: github.com/bep/simplecobra
dependency-version: 0.6.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-15 14:01:33 +02:00
Nigel van Keulen
348aae91e8
tpl/strings: Remove unnecessary error check
2025-08-15 13:43:16 +02:00
Joe Mooring
61482cfab6
markup/goldmark: Apply Hugo Goldmark Extras when rendering TOC
...
Closes #12605
2025-08-14 22:39:14 +02:00
dependabot[bot]
04ee1b9784
build(deps): bump golang.org/x/mod from 0.25.0 to 0.27.0
...
Bumps [golang.org/x/mod](https://github.com/golang/mod ) from 0.25.0 to 0.27.0.
- [Commits](https://github.com/golang/mod/compare/v0.25.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-version: 0.27.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-13 11:29:34 +02:00
dependabot[bot]
7a86fe9905
build(deps): bump github.com/yuin/goldmark from 1.7.12 to 1.7.13
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.12 to 1.7.13.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.12...v1.7.13 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.13
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-13 11:28:53 +02:00
Joe Mooring
5fdcc09062
markup/goldmark: Sanitize TOC heading titles
...
Fixes #13401
2025-08-13 11:23:30 +02:00
dependabot[bot]
f5245a7d5f
build(deps): bump golang.org/x/image from 0.28.0 to 0.30.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.28.0 to 0.30.0.
- [Commits](https://github.com/golang/image/compare/v0.28.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.30.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-12 14:46:29 +02:00
Joe Mooring
5029676aca
deps: Upgrade github.com/niklasfasching/go-org v1.8.0 => v1.9.1
...
Fixes #13846
2025-08-11 10:54:00 +02:00
n1xx1
2216028620
Add a key to the partialCached deadlock prevention
...
Fixes #13889
2025-08-07 11:17:14 +02:00
n1xx1
ecc3dd1f53
transform: Add support for "format" option in transform.Unmarshal
...
Fixes #13887
2025-08-05 22:19:51 +02:00
Bjørn Erik Pedersen
de4a7f1e04
Skip flakey test on CI
2025-08-05 19:45:46 +02:00
hugoreleaser
3aa22b0942
releaser: Prepare repository for 0.149.0-DEV
...
[ci skip]
2025-07-27 12:59:26 +00:00
hugoreleaser
40c3d8233d
releaser: Bump versions for release of 0.148.2
...
[ci skip]
2025-07-27 12:43:24 +00:00
Bjørn Erik Pedersen
7ff5ec734c
tpl: Add test for recent template selection regression
...
Closes #13868
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-07-27 14:39:39 +02:00
Bjørn Erik Pedersen
3937ab24d0
Revert "hugolib: Honor implicit "page" type during template selection"
...
This reverts commit cfc8d315b4 .
See #13868
2025-07-27 14:39:39 +02:00
Bjørn Erik Pedersen
9c57af1351
Fix regression with hyphenated codeblock templates, e.g. render-codeblock-go-html-template.html
...
Fixes #13864
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-07-27 14:39:39 +02:00
Bjørn Erik Pedersen
d240a705d6
commands: Avoid full browser refresh on simple CSS changes
2025-07-27 14:39:26 +02:00
hugoreleaser
bbcc2a7973
releaser: Prepare repository for 0.149.0-DEV
...
[ci skip]
2025-07-11 13:13:44 +00:00
hugoreleaser
98ba786f2f
releaser: Bump versions for release of 0.148.1
...
[ci skip]
2025-07-11 12:56:21 +00:00
Bjørn Erik Pedersen
6f42cfbc9b
Fix assignment to entry in nil map
...
Fixes #13853
2025-07-11 14:21:53 +02:00
Bjørn Erik Pedersen
a84beee429
deps: Downgrade github.com/niklasfasching/go-org v1.9.0 => v1.8.0
...
See #13846
2025-07-11 11:10:48 +02:00
hugoreleaser
65893efd8d
releaser: Prepare repository for 0.149.0-DEV
...
[ci skip]
2025-07-08 13:51:56 +00:00
hugoreleaser
c0d9bebacc
releaser: Bump versions for release of 0.148.0
...
[ci skip]
2025-07-08 13:34:49 +00:00
Bjørn Erik Pedersen
3e2f1cdfdb
Add Ancestors (plural) method to GitInfo, rename Ancestor field to Parent
...
Fixes #13839
2025-07-08 15:08:09 +02:00
dependabot[bot]
0a5b870281
build(deps): bump github.com/evanw/esbuild from 0.25.5 to 0.25.6
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.5 to 0.25.6.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.5...v0.25.6 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-08 12:01:51 +02:00
Bjørn Erik Pedersen
bba6996e15
Allow creating home pages from content adapters
...
* Allow "" (empty string) or "/" to represent the home page path.
* Be a little more lenient about path validation.
2025-07-07 18:41:45 +02:00
dependabot[bot]
94e2c276a8
build(deps): bump github.com/olekukonko/tablewriter from 1.0.7 to 1.0.8
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 1.0.7 to 1.0.8.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v1.0.7...v1.0.8 )
---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
dependency-version: 1.0.8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-07 14:59:20 +02:00
Bjørn Erik Pedersen
90d397b142
Remove the internal GitInfo type and make Page.GitInf() return a pointer
...
See #5693
2025-07-07 14:49:27 +02:00
Jens Broekens
61e6c730dd
source: Expose Ancestor in GitInfo
...
Also updates docs and bumps bep/gitmap to v1.7.0
Closes #5693
Co-authored-by: bep <bjorn.erik.pedersen@gmail.com >
2025-07-07 14:49:27 +02:00
Bjørn Erik Pedersen
e4f6b9eef8
Merge commit 'bb147f91ee9078e6a55e8c32ab4b2e5dbc5cee45'
2025-07-07 13:17:48 +02:00
Bjørn Erik Pedersen
bb147f91ee
Squashed 'docs/' changes from b654fcba0..60dd993a6
...
60dd993a6 content: Update GitHub Pages workflow
6247e3590 content: Fix typo
a22255b0b content: Update version references
21afec198 content: Update version reference
6226532c8 content: Update version reference
80d26621a content: Update version reference
cda7135b5 content: Fix typo
70c509e8a content: Fix typo
136b20310 content: Change render hook example
038246c2f content: Fix accidental removal
441375fa4 netlify: Hugo 0.147.9
4a620931c content: Note that config/env/cascade.xxx is not supported
6d3a7587f config: Ignore front matter param override warnings
623b48624 content: Set searchable param to false for content/en/documentation.md
d1b2aad69 content: Fix Codeberg deployment article
5e3d849b8 search: Use front matter parameter to control search indexing
b4f90e39d content: Note that PATH segments must exclude project directory
a81406e26 content: Create aliases for deleted template pages
7c3adc9ad content: Change order of template types
e093eb036 content: Remove admonition from template types page
0015e7a9b content: Update to align with v0.146.0 template system (phase 1)
cf986240d content: Update templates.Defer note
ab51fdcc7 content: Use consistent templates.Defer examples
b4f8e492f content: Fix formatting
62aa94add content: Fix typo
83747f36b content: Update FAQs
fc644d894 Update netlify.toml
4151f3a5b content: Fix typo
9452bca92 content: Update description ToMath strict option
982b863c3 content: Add instructions about deploying to root of user's Codeberg Pages
fc7cd2878 theme: Generate QR code once per page
784891b87 content: Update links to the CommonMark specification
741113fb5 content: Fix incorrect link to Shortcodes tutorial
c4962f1ac content: Update transform.ToMath
ad7b87223 Update netlify.toml
2d64e57ae theme: Remove bullet from new-in badge
55a832f8e Update ToMath.md
e1e624f49 content: Document transform.ToMath strict mode
2df6218f8 netlify: Hugo 0.147.6
0259b88f1 Revert "theme: Display date on news items from content adapter"
43b35e56a theme: Adjust admonition dark mode colors
2f15e9c34 theme: Add link to Mastodon
d99e979d4 theme: Display date on news items from content adapter
6c93dac97 content: Clarify the AddResource content value
49006468e content: Describe Codeberg's Forgejo Actions
be80c3b82 content: Update css.TailwindCSS opts
b3ba4329c theme: Update css.TailwindCSS opts and remove tailwind.config.js
902e360b0 content: Update stylesheet link for katex.js
8b9e1ba3e content: Update stylesheet link for katex.js
7dae3b0e8 content: Update TailwindCSS instructions
cb093d210 Update netlify.toml
577d6fbb1 content: Remove GitCMS for now
8352af6cd Updates for v0.147.4
2240f07a5 content: Fix typo
677b3fed3 Correct openapi3.Unmarshal example
580477aa5 content: Fix typo
0dc43b481 content: Add GitCMS to commercial front ends list
ac4179f2b content: Fix relref shortcode examples
a699d267b Fix typos
7e28c4380 Make sponsor logo responsive
8e05f0425 Update MaxInt64.md
f715265d3 content: Document math.MaxInt64
0d57ff7d4 Update netlify.toml
d210e3476 theme: Adjust sponsor
e73444b43 content: Clarify page title values
fd4c292b8 content: Fix links to Pandoc
dd074dc67 content: Bump version in GitHub Pages example
fe5537bb2 content: Describe the pandoc format
10834529e theme: Remove duplicate meta element
838706d6e theme: More changes related to new template system
b0b6b1e69 Update new-templatesystem-overview.md
e719d2360 Update new-templatesystem-overview.md
ec2bbd395 Update new-templatesystem-overview.md
53319a681 Add a one pager about the new template system
e17416c05 Fix the spelling issue on the Host on Render description
e8e1c82aa content: Document range-over-int introduced in v0.123.0
bc478f98f content: Fix editing errors
606547b48 Update netlify.toml
e224f3f82 content: Fix formatting
24e4acc41 content: Fix typo
1e773f34b content: Fix typo
5ef94a725 content: Document alternative to shuffle for large collections
7fe42d76c content: Fix sample code formatting
5d601448f content: Update mathematical markup guidance
63b4fe2c0 content: Update version references
722da91f1 content: Fix GO_VERSION in Netlify hosting example
8cc589c3a theme: Add current Hugo version to the header
37aa24ac5 netlify: Hugo 0.147.1
a80b25e24 content: Remove dated new-in
89dcf0f92 content: Fix path formatting
1a5191d78 content: Update transformation examples
3327065ab Update Text.md
557c10dd2 content: Miscellaneous updates for v0.147.0
0dae1a185 netlify: Hugo 0.147.0
9b44821c3 Merge branch 'tempv0.147.0'
f1481e8c3 content: Update GitLab Pages workflow example
2e61a0360 content: Update content format descriptions
fb42d7c2a images: Add option for vertical alignment to images.Text
git-subtree-dir: docs
git-subtree-split: 60dd993a65
2025-07-07 13:16:31 +02:00
Ruslan Semagin
266d46dccc
config: Increase test coverage
2025-07-07 11:27:34 +02:00
dependabot[bot]
e77b2ad8fd
build(deps): bump github.com/niklasfasching/go-org from 1.8.0 to 1.9.0
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.8.0 to 1.9.0.
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.8.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-version: 1.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-07 11:23:08 +02:00
dependabot[bot]
9487acf6ab
build(deps): bump github.com/alecthomas/chroma/v2 from 2.18.0 to 2.19.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.18.0...v2.19.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.19.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-07 11:22:29 +02:00
Joe Mooring
84b31721bf
markup/goldmark: Change link and image render hook enablement to enums
...
Closes #13535
2025-07-07 11:19:34 +02:00
Bjørn Erik Pedersen
b8ba33ca95
Fix some uglyURLs issues for home, section and taxonomy kind (note)
...
Fixes #4428
Fixes #7497
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-07-05 18:11:28 +02:00
Bjørn Erik Pedersen
f967212b72
Fix branch paths when OutputFormat.Path is configured (note)
...
Fixes #13829
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
2025-07-05 18:11:28 +02:00
Joe Mooring
1b4c423667
resources/page: Allow full datetime prefix in filenames
...
Allow YYYY-MM-DD-HH-MM-SS prefix when extracting date from file names.
This is in addition to the YYYY-MM-DD prefix that is already supported.
Closes #13830
2025-07-05 11:26:35 +02:00
dependabot[bot]
1e9a0b93e3
build(deps): bump golang.org/x/tools from 0.32.0 to 0.34.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.32.0 to 0.34.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.32.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-03 10:46:37 +02:00
Joe Mooring
cfc8d315b4
hugolib: Honor implicit "page" type during template selection
...
Closes #13826
2025-07-02 13:43:40 +02:00
David Jones
dd6e2c8724
deploy: walkLocal worker pool for performance
2025-06-29 16:41:56 +02:00
hugoreleaser
762417617c
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-06-23 08:38:21 +00:00
hugoreleaser
29bdbde19c
releaser: Bump versions for release of 0.147.9
...
[ci skip]
2025-06-23 08:22:20 +00:00
Bjørn Erik Pedersen
6a4a3ab8f8
Remove WARN with false negatives
...
Fixes #13806
2025-06-22 16:55:43 +02:00
Bjørn Erik Pedersen
36f6f987a9
resources/page: Make sure a map is always initialized
...
Fixes #13810
2025-06-21 14:38:06 +02:00
Joe Mooring
18a9ca7d7a
tpl/tplimpl: Copy embedded HTML table render hook to each output format
...
Closes #13351
2025-06-21 14:37:47 +02:00
Joe Mooring
b6c8dfa9dc
tpl/tplimpl: Change resources.GetRemote errors to suppressible warnings
...
Closes #13803
2025-06-17 07:35:14 -07:00
dependabot[bot]
621ea42f3c
build(deps): bump google.golang.org/api from 0.221.0 to 0.237.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.221.0 to 0.237.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.221.0...v0.237.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-version: 0.237.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-13 13:53:25 +02:00
Bjørn Erik Pedersen
4ef5720141
hugolib: Remove test for deprecated future
2025-06-13 12:17:06 +02:00
dependabot[bot]
34e83789f7
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.36.1 to 1.36.4
...
Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2 ) from 1.36.1 to 1.36.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.36.1...v1.36.4 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
dependency-version: 1.36.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-13 11:25:11 +02:00
dependabot[bot]
4d3ebe4d21
build(deps): bump golang.org/x/image from 0.27.0 to 0.28.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/image/compare/v0.27.0...v0.28.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.28.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-12 14:17:16 +02:00
Joe Mooring
b5c0383bda
deps: Upgrade github.com/spf13/cast v1.8.0 => v1.9.2
2025-06-12 10:07:09 +02:00
Joe Mooring
4217fee4b0
common/terminal: Enable color output on windows
...
Closes #8209
2025-06-09 11:44:13 +02:00
hugoreleaser
fad57964aa
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-06-07 13:13:56 +00:00
hugoreleaser
10da2bd765
releaser: Bump versions for release of 0.147.8
...
[ci skip]
2025-06-07 12:59:52 +00:00
Joe Mooring
01241d5dc9
hugolib: Emit ignorable warning when home page is a leaf bundle
...
Closes #13538
2025-06-07 13:02:28 +02:00
Bjørn Erik Pedersen
8e61f1fe12
dockerfile: Update Alpine
...
Closes #13783
2025-06-06 08:16:30 +02:00
Bjørn Erik Pedersen
f37412a575
dockerfile: Update Go version
...
FIxes #13780
2025-06-04 16:52:17 +02:00
dependabot[bot]
21a4a9acd7
build(deps): bump github.com/evanw/esbuild from 0.25.3 to 0.25.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.3 to 0.25.5.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.3...v0.25.5 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-03 11:27:57 +02:00
dependabot[bot]
7a4a4790e5
build(deps): bump github.com/niklasfasching/go-org from 1.7.0 to 1.8.0
...
Bumps [github.com/niklasfasching/go-org](https://github.com/niklasfasching/go-org ) from 1.7.0 to 1.8.0.
- [Commits](https://github.com/niklasfasching/go-org/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/niklasfasching/go-org
dependency-version: 1.8.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-03 11:26:51 +02:00
dependabot[bot]
54065b7ef8
build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/net/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-03 09:01:37 +02:00
dependabot[bot]
e333836f49
build(deps): bump github.com/yuin/goldmark from 1.7.11 to 1.7.12
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.11 to 1.7.12.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.11...v1.7.12 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.12
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-02 18:18:44 +02:00
dependabot[bot]
cc7bfeea32
build(deps): bump github.com/tdewolff/minify/v2 from 2.23.5 to 2.23.8
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.23.5 to 2.23.8.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.23.5...v2.23.8 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.23.8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-02 18:18:24 +02:00
Bjørn Erik Pedersen
32eb1a8ad4
all: Replace _build with build in tests
...
_build is deprecated and now shows up as warning.
2025-06-02 16:35:37 +02:00
hugoreleaser
32af02cd3e
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-31 12:55:24 +00:00