]>
git.maquefel.me Git - brevno-suite/hugo/log
Bjørn Erik Pedersen [Thu, 23 Oct 2025 09:00:38 +0000 (11:00 +0200)]
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.
hugoreleaser [Fri, 24 Oct 2025 15:44:59 +0000 (15:44 +0000)]
releaser: Prepare repository for 0.153.0-DEV
[ci skip]
hugoreleaser [Fri, 24 Oct 2025 15:31:49 +0000 (15:31 +0000)]
releaser: Bump versions for release of 0.152.2
[ci skip]
Joe Mooring [Fri, 24 Oct 2025 14:33:05 +0000 (07:33 -0700)]
deps: Update github.com/tdewolff/minify v2.24.4 => v2.24.5
Closes #14086
Bjørn Erik Pedersen [Fri, 24 Oct 2025 08:36:32 +0000 (10:36 +0200)]
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
Jordan Elver [Fri, 24 Oct 2025 12:30:48 +0000 (14:30 +0200)]
github: Fix typo in stale PR message
hugoreleaser [Wed, 22 Oct 2025 19:24:59 +0000 (19:24 +0000)]
releaser: Prepare repository for 0.153.0-DEV
[ci skip]
hugoreleaser [Wed, 22 Oct 2025 19:10:44 +0000 (19:10 +0000)]
releaser: Bump versions for release of 0.152.1
[ci skip]
Bjørn Erik Pedersen [Wed, 22 Oct 2025 17:12:11 +0000 (19:12 +0200)]
Expand the numeric conversions to template funcs/methods
So the example mentioned in #14079 also works for TOML and JSON front matter.
See #14079
Bjørn Erik Pedersen [Wed, 22 Oct 2025 16:29:40 +0000 (18:29 +0200)]
Fix where with uint64
Fixes #14081
Bjørn Erik Pedersen [Wed, 22 Oct 2025 12:22:59 +0000 (14:22 +0200)]
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
Bjørn Erik Pedersen [Wed, 22 Oct 2025 10:13:02 +0000 (12:13 +0200)]
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
Bjørn Erik Pedersen [Wed, 22 Oct 2025 09:06:54 +0000 (11:06 +0200)]
Fix "assignment to entry in nil map" on empty YAML config files
Fixes #14074
hugoreleaser [Tue, 21 Oct 2025 16:43:50 +0000 (16:43 +0000)]
releaser: Prepare repository for 0.153.0-DEV
[ci skip]
hugoreleaser [Tue, 21 Oct 2025 16:29:49 +0000 (16:29 +0000)]
releaser: Bump versions for release of 0.152.0
[ci skip]
Bjørn Erik Pedersen [Tue, 21 Oct 2025 14:08:23 +0000 (16:08 +0200)]
Merge branch 'release-0.151.2'
Bjørn Erik Pedersen [Tue, 21 Oct 2025 09:09:29 +0000 (11:09 +0200)]
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
Bjørn Erik Pedersen [Tue, 21 Oct 2025 08:32:52 +0000 (10:32 +0200)]
Skip flaky test for now
See #14072
Bjørn Erik Pedersen [Sat, 18 Oct 2025 15:42:43 +0000 (17:42 +0200)]
Misc YAML adjustments
Closes #14067
Bjørn Erik Pedersen [Sun, 19 Oct 2025 09:50:46 +0000 (11:50 +0200)]
hugofs: Make sure that non-project module mounts are local paths
Fixes #14069
Joe Mooring [Sat, 18 Oct 2025 18:10:05 +0000 (11:10 -0700)]
langs/i18n: Improve reserved key error message
Closes #14061
Bjørn Erik Pedersen [Sat, 18 Oct 2025 14:25:21 +0000 (16:25 +0200)]
deps: Upgrade github.com/gohugoio/go-i18n/v2
Gets the fork line with https://github.com/nicksnyder/go-i18n/commit/
28dedbee2baafdef1b89b46fc5b729d09232e245 + patch.
Bjørn Erik Pedersen [Sat, 18 Oct 2025 13:23:19 +0000 (15:23 +0200)]
langs: Add test case using a "reserved" i18n code
See #14061
Bjørn Erik Pedersen [Fri, 17 Oct 2025 10:49:54 +0000 (12:49 +0200)]
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
dependabot[bot] [Fri, 17 Oct 2025 08:04:06 +0000 (08:04 +0000)]
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>
hugoreleaser [Thu, 16 Oct 2025 17:06:05 +0000 (17:06 +0000)]
releaser: Prepare repository for 0.152.0-DEV
[ci skip]
hugoreleaser [Thu, 16 Oct 2025 16:52:34 +0000 (16:52 +0000)]
releaser: Bump versions for release of 0.151.2
[ci skip]
Bjørn Erik Pedersen [Thu, 16 Oct 2025 14:47:15 +0000 (16:47 +0200)]
parser/pageparser: Add a testcase for nested shortcodes of the same name
See #14054
Bjørn Erik Pedersen [Thu, 16 Oct 2025 14:42:49 +0000 (16:42 +0200)]
parser/pageparser: Fix shortcode nesting regression
This reverts commit
a133393edab5aca89b60fae44e445bc527095c6a .
While that commit fixed a bug, it introduced a worse one.
Closes #14054
Bjørn Erik Pedersen [Thu, 16 Oct 2025 09:38:53 +0000 (11:38 +0200)]
testscripts: Add and improve commands tests for static mounts
hugoreleaser [Wed, 15 Oct 2025 15:06:42 +0000 (15:06 +0000)]
releaser: Prepare repository for 0.152.0-DEV
[ci skip]
hugoreleaser [Wed, 15 Oct 2025 14:51:34 +0000 (14:51 +0000)]
releaser: Bump versions for release of 0.151.1
[ci skip]
Bjørn Erik Pedersen [Wed, 15 Oct 2025 08:45:56 +0000 (10:45 +0200)]
Upgrade Go to 1.25.3
See https://go.dev/doc/devel/release#go1.25.3
Kazuo Oishi [Fri, 10 Oct 2025 04:05:07 +0000 (13:05 +0900)]
tpl: Fix strings/truncate CJK handling
Fix truncate position for mix of CJK and non-CJK text.
Fixes #14039
dependabot[bot] [Wed, 15 Oct 2025 08:03:39 +0000 (08:03 +0000)]
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>
dependabot[bot] [Tue, 14 Oct 2025 20:11:30 +0000 (20:11 +0000)]
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>
dependabot[bot] [Wed, 15 Oct 2025 08:02:15 +0000 (08:02 +0000)]
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>
dependabot[bot] [Tue, 14 Oct 2025 14:36:41 +0000 (14:36 +0000)]
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>
dependabot[bot] [Thu, 9 Oct 2025 08:01:41 +0000 (08:01 +0000)]
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>
Sardorbek Imomaliev [Sun, 12 Oct 2025 21:47:49 +0000 (22:47 +0100)]
create/skeletons: Wrap section and home lists with section tags
Avoiding issues with tag leakage when using .Summary
See issue #14044 for details.
Joe Mooring [Mon, 13 Oct 2025 19:12:28 +0000 (12:12 -0700)]
markup/goldmark: Align blockquote default output with Goldmark
Closes #14046
Bjørn Erik Pedersen [Sun, 5 Oct 2025 15:01:26 +0000 (17:01 +0200)]
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) ²
```
Bjørn Erik Pedersen [Sun, 5 Oct 2025 11:19:19 +0000 (13:19 +0200)]
parser/pagerparser: Fix closing shortcode error handling when repeated
Bjørn Erik Pedersen [Sun, 5 Oct 2025 16:08:52 +0000 (18:08 +0200)]
testscripts: Make test assertion less specific
hugoreleaser [Thu, 2 Oct 2025 13:45:36 +0000 (13:45 +0000)]
releaser: Prepare repository for 0.152.0-DEV
[ci skip]
hugoreleaser [Thu, 2 Oct 2025 13:30:36 +0000 (13:30 +0000)]
releaser: Bump versions for release of 0.151.0
[ci skip]
Bjørn Erik Pedersen [Thu, 2 Oct 2025 10:13:47 +0000 (12:13 +0200)]
Adjust the terminal progress reporter a little
Mostly to reduce the amount of OSC 9;4 sequences written to stdout.
Andrii Chubatiuk [Sat, 13 Sep 2025 16:36:39 +0000 (19:36 +0300)]
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>
dependabot[bot] [Wed, 1 Oct 2025 08:01:31 +0000 (08:01 +0000)]
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>
dependabot[bot] [Wed, 1 Oct 2025 08:02:40 +0000 (08:02 +0000)]
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>
Bjørn Erik Pedersen [Wed, 1 Oct 2025 15:00:06 +0000 (17:00 +0200)]
Add transform.HTMLToMarkdown
Fixes #13946
Bjørn Erik Pedersen [Tue, 30 Sep 2025 09:43:26 +0000 (11:43 +0200)]
Report OSC 9;4 progress when building
As supported by the Ghostty terminal and others.
dependabot[bot] [Tue, 30 Sep 2025 08:03:44 +0000 (08:03 +0000)]
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>
dependabot[bot] [Tue, 30 Sep 2025 08:02:18 +0000 (08:02 +0000)]
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>
dependabot[bot] [Mon, 29 Sep 2025 13:53:58 +0000 (13:53 +0000)]
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>
dependabot[bot] [Tue, 30 Sep 2025 08:02:35 +0000 (08:02 +0000)]
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>
Bjørn Erik Pedersen [Tue, 30 Sep 2025 15:29:15 +0000 (17:29 +0200)]
Fix file caching for 404 responses in resources.GetRemote
Fixes #14019
dependabot[bot] [Tue, 30 Sep 2025 08:02:28 +0000 (08:02 +0000)]
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>
Dr. Tobias Quathamer [Sun, 28 Sep 2025 15:43:11 +0000 (17:43 +0200)]
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."
Bjørn Erik Pedersen [Mon, 29 Sep 2025 11:05:24 +0000 (13:05 +0200)]
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
Bjørn Erik Pedersen [Mon, 29 Sep 2025 09:34:25 +0000 (11:34 +0200)]
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)
```
dependabot[bot] [Fri, 26 Sep 2025 08:01:32 +0000 (08:01 +0000)]
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>
dependabot[bot] [Fri, 26 Sep 2025 08:01:29 +0000 (08:01 +0000)]
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>
dependabot[bot] [Fri, 26 Sep 2025 08:01:51 +0000 (08:01 +0000)]
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>
Joe Mooring [Sun, 28 Sep 2025 16:45:52 +0000 (09:45 -0700)]
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
Joe Mooring [Sat, 13 Sep 2025 03:19:18 +0000 (20:19 -0700)]
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
hugoreleaser [Thu, 25 Sep 2025 10:45:05 +0000 (10:45 +0000)]
releaser: Prepare repository for 0.151.0-DEV
[ci skip]
hugoreleaser [Thu, 25 Sep 2025 10:26:04 +0000 (10:26 +0000)]
releaser: Bump versions for release of 0.150.1
[ci skip]
Joe Mooring [Thu, 18 Sep 2025 16:03:15 +0000 (09:03 -0700)]
hugolib: Change duplicate content path warning to an info log
Improves #13993
Joe Mooring [Thu, 18 Sep 2025 15:08:03 +0000 (08:08 -0700)]
hugolib: Restore integration test
Closes #13991
Joe Mooring [Wed, 17 Sep 2025 16:11:12 +0000 (09:11 -0700)]
commands: Map --minify CLI flag to the correct configuration key
Closes #13988
Max Kapur [Thu, 18 Sep 2025 13:22:39 +0000 (08:22 -0500)]
snap: Add desktop plug
Max Kapur [Wed, 17 Sep 2025 16:30:21 +0000 (11:30 -0500)]
test(deps): Update setup-ruby action to v1.257.0
hugoreleaser [Mon, 8 Sep 2025 13:16:24 +0000 (13:16 +0000)]
releaser: Prepare repository for 0.151.0-DEV
[ci skip]
hugoreleaser [Mon, 8 Sep 2025 13:01:12 +0000 (13:01 +0000)]
releaser: Bump versions for release of 0.150.0
[ci skip]
dependabot[bot] [Mon, 8 Sep 2025 08:14:53 +0000 (08:14 +0000)]
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>
Bjørn Erik Pedersen [Fri, 5 Sep 2025 06:00:39 +0000 (08:00 +0200)]
modules: Add support for direct version module imports in hugo.toml
Fixes #13964
Joe Mooring [Fri, 5 Sep 2025 19:21:17 +0000 (12:21 -0700)]
resources/page: Fix truncated summary logic
Fixes #13967
Fixes #13968
Joe Mooring [Thu, 4 Sep 2025 19:49:26 +0000 (12:49 -0700)]
config/security: Add PROGRAMDATA to the osenv allowlist
hugoreleaser [Thu, 4 Sep 2025 14:18:57 +0000 (14:18 +0000)]
releaser: Prepare repository for 0.150.0-DEV
[ci skip]
hugoreleaser [Thu, 4 Sep 2025 14:04:46 +0000 (14:04 +0000)]
releaser: Bump versions for release of 0.149.1
[ci skip]
Lukáš Zapletal [Sat, 30 Aug 2025 17:55:41 +0000 (19:55 +0200)]
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
Bjørn Erik Pedersen [Thu, 4 Sep 2025 09:21:29 +0000 (11:21 +0200)]
Fix nilpointer on ToC heading
Fixes #11843
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
Bjørn Erik Pedersen [Thu, 4 Sep 2025 09:18:39 +0000 (11:18 +0200)]
tpl/collections: Require collections.D args to be ints
Fixes #13952
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
Bjørn Erik Pedersen [Thu, 4 Sep 2025 09:11:29 +0000 (11:11 +0200)]
Upgrade to Go 1.25.1
Fixes #13960
PikachuTW [Thu, 4 Sep 2025 08:49:14 +0000 (16:49 +0800)]
Fix config env handling for some slice options
Fixes #13950
Joe Mooring [Fri, 29 Aug 2025 14:54:15 +0000 (07:54 -0700)]
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
Bjørn Erik Pedersen [Mon, 1 Sep 2025 15:11:08 +0000 (17:11 +0200)]
Update README.md
hugoreleaser [Wed, 27 Aug 2025 15:51:44 +0000 (15:51 +0000)]
releaser: Prepare repository for 0.150.0-DEV
[ci skip]
hugoreleaser [Wed, 27 Aug 2025 15:37:16 +0000 (15:37 +0000)]
releaser: Bump versions for release of 0.149.0
[ci skip]
Bjørn Erik Pedersen [Wed, 27 Aug 2025 13:21:29 +0000 (15:21 +0200)]
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 ).
Joe Mooring [Wed, 27 Aug 2025 14:42:21 +0000 (07:42 -0700)]
misc: Update Go version to 1.24.0 in README
Update Go version requirements for building Hugo.
Justus Perlwitz [Wed, 27 Aug 2025 07:33:17 +0000 (07:33 +0000)]
create: Fix new content command with future dates
Fixes #12599
dependabot[bot] [Wed, 27 Aug 2025 02:16:25 +0000 (02:16 +0000)]
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>
Bjørn Erik Pedersen [Tue, 26 Aug 2025 18:37:08 +0000 (20:37 +0200)]
tpl/collections: Add collections.D using Vitter's Method D for sequential random sampling
dependabot[bot] [Mon, 25 Aug 2025 20:30:36 +0000 (20:30 +0000)]
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>
dependabot[bot] [Mon, 25 Aug 2025 14:56:08 +0000 (14:56 +0000)]
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>
dependabot[bot] [Mon, 25 Aug 2025 16:04:37 +0000 (16:04 +0000)]
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>
Bjørn Erik Pedersen [Mon, 25 Aug 2025 14:21:30 +0000 (16:21 +0200)]
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
Bjørn Erik Pedersen [Mon, 25 Aug 2025 13:27:19 +0000 (15:27 +0200)]
commands: Add --omitClassComments to the chromastyles command