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
hugoreleaser
189453612e
releaser: Bump versions for release of 0.147.7
...
[ci skip]
2025-05-31 12:41:12 +00:00
Bjørn Erik Pedersen
5273a884d4
Fix language handling in shortcode templates
...
Fixes #13767
2025-05-31 13:57:00 +02:00
Bjørn Erik Pedersen
6334948515
Handle KaTeX warnings ( #13760 )
...
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com >
Fixes #13735
2025-05-30 20:57:54 +02:00
dependabot[bot]
75259636c8
build(deps): bump golang.org/x/image from 0.26.0 to 0.27.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/image/compare/v0.26.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.27.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-30 15:13:21 +02:00
dependabot[bot]
0df9f3510f
build(deps): bump golang.org/x/text from 0.24.0 to 0.25.0
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.25.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-30 12:50:09 +02:00
dependabot[bot]
302e6a726b
build(deps): bump github.com/spf13/cast from 1.7.1 to 1.8.0
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cast
dependency-version: 1.8.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-30 08:34:09 +02:00
dependabot[bot]
202fe0d45c
build(deps): bump github.com/alecthomas/chroma/v2 from 2.17.2 to 2.18.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.17.2 to 2.18.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.17.2...v2.18.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.18.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-29 22:12:58 +02:00
Joe Mooring
843ffeb48d
resources/page: Respect disablePathToLower for permalink tokens
...
Fixes #13755
2025-05-29 22:10:03 +02:00
Ruslan Semagin
bff5d19121
common/collections: Increase test coverage
2025-05-29 09:17:13 +02:00
Ruslan Semagin
da370d30de
parser/pageparser: Add coverage for all IsX methods of Item
...
Added tests for all boolean methods on Item, increasing overall code coverage.
2025-05-28 21:53:17 +02:00
Bjørn Erik Pedersen
6bd328c584
resources: Remove unused interface
2025-05-28 19:32:28 +02:00
Bjørn Erik Pedersen
766a2e7868
Make sure that unreferenced but changed bundle resources gets republished
...
Fixes #13748
2025-05-28 19:32:28 +02:00
Bjørn Erik Pedersen
13e1617557
deps: Upgrade github.com/olekukonko/tablewriter v0.0.5 => v1.0.7
2025-05-28 18:07:14 +02:00
hugoreleaser
463e440c7a
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-27 11:31:53 +00:00
hugoreleaser
0a5fd8ebb8
releaser: Bump versions for release of 0.147.6
...
[ci skip]
2025-05-27 11:17:16 +00:00
Andreas Deininger
e57dcd3795
Improve warning message on superfluous prefix when using function 'partials.Include'
2025-05-27 12:16:26 +02:00
Bjørn Erik Pedersen
eaf5ace30d
Fix recent regression with cascading of params to content adapters
...
Fixes #13743
2025-05-26 21:26:19 +02:00
Bjørn Erik Pedersen
9ad26b69ad
Fix it so e.g. de in layouts/_shortcodes/de.html is not interpreted as a language code
...
Fixes #13740
2025-05-26 20:26:56 +02:00
Bjørn Erik Pedersen
f47193669d
commands: Make sure the browser gets refreshed on changes when --disableFastRender is set
...
Fixes #13727
2025-05-23 19:46:16 +02:00
Joe Mooring
013c8cfb25
tpl/transform: Expose the KaTeX strict option
...
Closes #13729
2025-05-23 19:21:38 +02:00
hugoreleaser
e25db38467
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-22 11:51:47 +00:00
hugoreleaser
7766fc6241
releaser: Bump versions for release of 0.147.5
...
[ci skip]
2025-05-22 11:37:19 +00:00
Bjørn Erik Pedersen
4a48facef4
Merge branch 'release-0.147.4'
2025-05-22 13:19:34 +02:00
Bjørn Erik Pedersen
0c7b1a3f26
Fix live reload when editing inline partials
...
Fixes #13723
2025-05-22 13:15:41 +02:00
dependabot[bot]
970b887ba1
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.37 to 2.23.5
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.37 to 2.23.5.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.37...v2.23.5 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-version: 2.23.5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-20 14:49:06 +02:00
hugoreleaser
b9b95e5aec
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-20 10:55:43 +00:00
hugoreleaser
84c8426f32
releaser: Bump versions for release of 0.147.4
...
[ci skip]
2025-05-20 10:41:19 +00:00
Bjørn Erik Pedersen
a03a245f0c
Fix it so css.TailwindCSS inlineImports options isn't always enabled
...
To avoid breaking existing setup and to make a better default option, the option is now `disableInlineImports` (default false).
Fixes #13719
2025-05-19 19:36:48 +02:00
Bjørn Erik Pedersen
5a81a3a4cf
tpl: Add a test case
...
I'm not able to reproduce this, but leaving it in.
Closes #13699
2025-05-18 12:48:24 +02:00
Bjørn Erik Pedersen
61317821e4
tpl: Narrow down the usage of plain text shortcodes when rendering HTML
...
After this commit, if you want to resolve `layouts/_shortcodes/myshortcode.txt` when rendering HTML content, you need to use the `{{%` shortcode delimiter:
```
{{% myshortcode %}}
```
This should be what people would do anyway, but we have also as part of this improved the error message to inform about what needs to be done.
Note that this is not relevant for partials.
Fixes #13698
2025-05-18 12:48:24 +02:00
Bjørn Erik Pedersen
6142bc701c
tpl: Fix theme overrides when theme has old layout setup (e.g. _default)
...
Fixes #13715
2025-05-18 12:48:24 +02:00
hugoreleaser
e6574cf7a7
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-12 12:40:04 +00:00
hugoreleaser
05417512bd
releaser: Bump versions for release of 0.147.3
...
[ci skip]
2025-05-12 12:25:03 +00:00
Joe Mooring
81426998b8
tpl/tplimpl: Change calls to simple versions of embedded shortcodes
...
Closes #13700
2025-05-12 14:19:11 +02:00
Bjørn Erik Pedersen
6def5a1ba9
Update README.md
2025-05-12 12:10:27 +02:00
Bjørn Erik Pedersen
bc98e7a80d
config: Fix env override of slices
...
Fixes #13707
2025-05-11 19:24:24 +02:00
Bjørn Erik Pedersen
c745a3e108
Fix/implement cascade for content adapters
...
Fixes #13692
2025-05-10 15:12:24 +02:00
Joe Mooring
9d1d8c8899
commands: Fix description of new theme commands
...
Fixes #13701
2025-05-09 20:03:21 +02:00
Joe Mooring
84d7a108e8
tpl/tplimpl: Fix vimeo shortcode test to accommodate API changes
...
Fixes #13687
2025-05-09 10:02:00 -07:00
Joe Mooring
325a0dba63
tpl/math: Add MaxInt64 function
...
Closes #13693
2025-05-07 19:40:29 +02:00
hugoreleaser
d70f828e2b
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-06 11:33:36 +00:00
hugoreleaser
c7feb15d10
releaser: Bump versions for release of 0.147.2
...
[ci skip]
2025-05-06 11:18:55 +00:00
Bjørn Erik Pedersen
363ab48a24
Fix handling of "outputs" from content adapter pages
...
Fixes #13689
2025-05-06 11:40:46 +02:00
Bjørn Erik Pedersen
80f0595311
tpl: Fix case issue in templates.Exists
...
Fixes #13684
2025-05-05 11:23:52 +02:00
Bjørn Erik Pedersen
b39b249623
config: Add some more merge tests
...
See #13681
2025-05-02 11:15:38 +02:00
hugoreleaser
d799c045fd
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-05-01 14:04:58 +00:00
hugoreleaser
95666fc5a4
releaser: Bump versions for release of 0.147.1
...
[ci skip]
2025-05-01 13:50:04 +00:00
dependabot[bot]
620fc87b56
build(deps): bump github.com/alecthomas/chroma/v2 from 2.17.0 to 2.17.2
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.17.0 to 2.17.2.
- [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.17.0...v2.17.2 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.17.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 15:44:26 +02:00
dependabot[bot]
8b2124e7c3
build(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.131.0 to 0.132.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.131.0...v0.132.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-version: 0.132.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 13:19:22 +02:00
Bjørn Erik Pedersen
5fec7829b1
tpl: Add some more test cases
...
See #13672
See #13668
2025-05-01 12:55:11 +02:00
dependabot[bot]
927d1ec6c1
build(deps): bump github.com/yuin/goldmark from 1.7.10 to 1.7.11
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.10 to 1.7.11.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.10...v1.7.11 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.11
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-30 22:09:10 +02:00
Bjørn Erik Pedersen
be93d5218b
tpl: Fix overlapping layout sections
...
Fixes #13672
2025-04-30 21:04:03 +02:00
Bjørn Erik Pedersen
a1cb15e1cf
Fix it so the owning taxonomy gets rerendered in server when new tags are added
...
Updates #13648
2025-04-28 21:42:16 +02:00
Joe Mooring
673a4d00eb
commands/server: Display correct multihost language in console
...
Fixes #12564
2025-04-28 20:00:15 +02:00
Joe Mooring
31db7edf6d
hugolib: Use new build key in content placeholder
...
Fixes #13655
2025-04-27 13:18:43 +02:00
hugoreleaser
5857b60cbc
releaser: Prepare repository for 0.148.0-DEV
...
[ci skip]
2025-04-25 15:41:01 +00:00
hugoreleaser
7d0039b86d
releaser: Bump versions for release of 0.147.0
...
[ci skip]
2025-04-25 15:26:28 +00:00
Bjørn Erik Pedersen
07983e04e2
tpl: Fix it so we always prefer internal codeblock rendering over render-codeblock-foo.html and similar
...
Fixes #13651
2025-04-25 10:51:33 +02:00
Joe Mooring
5c491409d3
tpl/tplimpl: Fix allowFullScreen option in Vimeo and YouTube shortcodes
...
Closes #13650
2025-04-24 14:14:46 -07:00
Joe Mooring
75b219db89
create/skeletons: Adjust template names in theme skeleton
2025-04-24 19:02:11 +02:00
Bjørn Erik Pedersen
ad4f63c92f
tpl: Remove some unreached code branches
2025-04-24 14:27:59 +02:00
Bjørn Erik Pedersen
53202314ab
images: Add some test cases for aligny on images.Text
...
See #13414
2025-04-24 14:09:13 +02:00
Pranshu Gaba
2fce0bac03
images: Add option for vertical alignment to images.Text
...
Add option ``aligny`` to specify the vertical alignment of the text
with respect to the ``y`` offset from the top of the image. Possible
values of ``aligny`` are ``top`` (default), ``center``, and ``bottom``.
The height of the block of text is measured from the top of the first
line to the baseline of the last line.
- ``top``: (Current behaviour) The top of the first line of the block of
text is at an offset of ``y`` from the top of the image.
- ``center``: The vertical center of the block of text is at an offset of
``y`` from the top of the image.
- ``bottom``: The baseline of the last line of the text is at an offset
of ``y`` from the top of the image.
Resolves #13414
2025-04-24 14:09:13 +02:00
Bjørn Erik Pedersen
179aea11ac
config: Fix _merge issue when key doesn't exist on the left side
...
Fixes #13643
Fixes #13646
2025-04-24 13:56:27 +02:00
Bjørn Erik Pedersen
b3d87dd0fd
Squashed 'docs/' changes from dc7a9ae12..b654fcba0
...
b654fcba0 content: Fix links
d44357418 content: Update GitLab Pages workflow example
33968c7e2 content: Update Netlify configuration file
a6d0c8c50 content: Update GitHub Pages workflow example
d1aabfa36 content: Fix broken link
7b50139a6 content: Miscellaneous edits
a30e2c189 Menus: add forgotten link target
5c2aa88b4 content: Updates for v0.146.7
114413c18 netlify: Hugo 0.146.7
67e9261b1 netlify: Hugo 0.146.6
efa040229 content: Update templates/embedded.md
b8f888c76 theme: Rename internal templates from partials/ to _partials/
727178cbb content: Fix broken anchor links
0f12708f1 Fix typo
380b1c163 Update Current.md
8b500f3e5 netlify: Hugo 0.146.5
e3d6b6fad netlify: Hugo 0.146.4
ac1b92713 content: Fix text formatting in templates/partial.md
719329530 content: Clarify usage of template function
a95eca524 theme: Misc adjustments for the themes site
8e6c26067 Add package.hugo.json
9691007fb netlify: Hugo 0.146.3
ec08acc59 netlify: Hugo 0.146.2
8f320a0b6 netlify: Hugo 0.146.1
d5e6cb618 content: Remove expired new-in badges
b5779d7fc content: Update templates.Current function
5df1229d5 theme: Move templates to new structure
a7a6a614d theme: Remove accidentally added template
195b368e8 content: Miscellaneous updates related to v0.146.0
0a906ad49 netlify: Hugo 0.146.0
git-subtree-dir: docs
git-subtree-split: b654fcba0d
2025-04-24 10:23:16 +02:00
Bjørn Erik Pedersen
61a286595e
Merge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'
2025-04-24 10:23:16 +02:00
Christian Oliff
6a0e04241a
all: Fix typos
2025-04-24 10:19:17 +02:00
dependabot[bot]
1bd7ac7ed9
build(deps): bump github.com/evanw/esbuild from 0.25.2 to 0.25.3
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.2 to 0.25.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.25.2...v0.25.3 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-24 10:15:48 +02:00
dependabot[bot]
41cb880f9a
build(deps): bump github.com/alecthomas/chroma/v2 from 2.16.0 to 2.17.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.16.0 to 2.17.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.16.0...v2.17.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-24 10:11:50 +02:00
hugoreleaser
df44ee1353
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-22 17:42:19 +00:00
hugoreleaser
1ad3d39dc4
releaser: Bump versions for release of 0.146.7
...
[ci skip]
2025-04-22 17:26:42 +00:00
Bjørn Erik Pedersen
496730840e
Revert the breaking change from 0.146.0 with dots in content filenames
...
Closes #13632
2025-04-22 19:23:19 +02:00
Bjørn Erik Pedersen
6d69dc88a4
tpl: Fix indeterminate template lookup with templates with and without lang
...
Close #13636
2025-04-22 17:29:39 +02:00
Joe Mooring
db72a1f075
parser/metadecoders: Add CSV targetType (map or slice) option to transform.Unmarshal
...
Closes #8859
2025-04-21 19:33:20 +02:00
dependabot[bot]
ad787614e8
build(deps): bump github.com/yuin/goldmark-emoji from 1.0.5 to 1.0.6
...
Bumps [github.com/yuin/goldmark-emoji](https://github.com/yuin/goldmark-emoji ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/yuin/goldmark-emoji/releases )
- [Commits](https://github.com/yuin/goldmark-emoji/compare/v1.0.5...v1.0.6 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark-emoji
dependency-version: 1.0.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 15:18:02 +02:00
dependabot[bot]
9c65b9e88d
build(deps): bump github.com/bep/imagemeta from 0.11.0 to 0.12.0
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 15:17:49 +02:00
Bjørn Erik Pedersen
4eb0e4286a
tpl/collections: Fix where ... not in with empty slice
...
Fixes #13621
2025-04-21 15:17:20 +02:00
Bjørn Erik Pedersen
5e62cc6fce
tpl: Fix layout fall back logic when layout is set in front matter but not found
...
Fixes #13630
2025-04-21 15:17:20 +02:00
Bjørn Erik Pedersen
1408c156d8
tpl: Detect and fail on infinite template recursion
...
Fixes #13627
2025-04-21 15:17:20 +02:00
dependabot[bot]
be3b147860
build(deps): bump github.com/yuin/goldmark from 1.7.9 to 1.7.10
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.9 to 1.7.10.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.9...v1.7.10 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.10
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 11:56:44 +02:00
hugoreleaser
99fff2997d
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-20 11:13:56 +00:00
hugoreleaser
1e0b058efe
releaser: Bump versions for release of 0.146.6
...
[ci skip]
2025-04-20 10:58:40 +00:00
Bjørn Erik Pedersen
088cd2f996
tpl: Fix when layout specified in front matter and no match is found
...
Fixes #13628
2025-04-20 12:55:18 +02:00
broughtupsy
a88b488181
Update watchtestscripts.sh
2025-04-16 08:28:19 +02:00
hugoreleaser
d5a8c330cb
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-15 18:09:42 +00:00
hugoreleaser
61328976e1
releaser: Bump versions for release of 0.146.5
...
[ci skip]
2025-04-15 17:54:38 +00:00
dependabot[bot]
64cf008880
build(deps): bump github.com/yuin/goldmark from 1.7.8 to 1.7.9
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.8 to 1.7.9.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.8...v1.7.9 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-version: 1.7.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-15 14:33:56 +02:00
Bjørn Erik Pedersen
d61b9fc605
tpl: Fix language handling in partials
...
We now use the same code path for all templates re this.
Fixes #13612
2025-04-15 11:25:54 +02:00
hugoreleaser
01667275d4
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-14 13:25:05 +00:00
hugoreleaser
985af1c097
releaser: Bump versions for release of 0.146.4
...
[ci skip]
2025-04-14 13:10:30 +00:00
Bjørn Erik Pedersen
65c94c7b23
tpl: Fix issue with partials without suffix
...
Fixes #13601
2025-04-14 14:38:22 +02:00
Bjørn Erik Pedersen
e8e8ce10d2
tpl: Avoid panic on nonsensical return construct
...
Fixes #13600
2025-04-14 14:38:22 +02:00
Bjørn Erik Pedersen
cf9e6904cc
tpl: Fix the case for a shortcode in a nested folder only
...
Fixes #13605
2025-04-14 14:38:22 +02:00
Bjørn Erik Pedersen
8a2830f2dc
tpl: Add proper file context to template parse errors
...
Fixes #13604
2025-04-14 14:38:22 +02:00
Bjørn Erik Pedersen
1e0287f472
tpl: Make {{ template "partials/foo.html" . }} work in older setups
...
Fixes #13599
2025-04-14 14:38:22 +02:00
hugoreleaser
915ba3f7f0
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-12 17:36:11 +00:00
hugoreleaser
05ef8b713a
releaser: Bump versions for release of 0.146.3
...
[ci skip]
2025-04-12 17:21:50 +00:00
Bjørn Erik Pedersen
30b9c19c76
tpl: Make any layout set in front matter higher priority
...
Fixes #13541
2025-04-12 18:12:06 +02:00
Bjørn Erik Pedersen
c8710625b7
tpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock exists
...
Fixes #13595
2025-04-12 13:03:45 +02:00
hugoreleaser
53221f88ca
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-11 17:39:58 +00:00
hugoreleaser
ff3ab192c2
releaser: Bump versions for release of 0.146.2
...
[ci skip]
2025-04-11 17:25:13 +00:00
Bjørn Erik Pedersen
d1c394442b
tpl: Fix codeblock hook resolve issue
...
Fixes #13593
2025-04-11 18:59:42 +02:00
Bjørn Erik Pedersen
1074e01152
tpl: Fix legacy section mappings
...
Fixes #13584
2025-04-11 18:23:51 +02:00
Bjørn Erik Pedersen
c19f1f2363
tpl: Resolve layouts/all.html for all html output formats
...
Fixes #13587
2025-04-11 18:23:51 +02:00
Bjørn Erik Pedersen
9221cbca49
tpl: Fix some baseof lookup issues
...
We were mistakingly using the templates (e.g. list.html) descriptor to resolve the base template and not the page,
which worked fine in most cases, but not all.
Fixes #13583
2025-04-11 18:23:51 +02:00
hugoreleaser
e3e3f9ae17
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-10 16:59:48 +00:00
hugoreleaser
acc4fe24be
releaser: Bump versions for release of 0.146.1
...
[ci skip]
2025-04-10 16:44:46 +00:00
Bjørn Erik Pedersen
3b9f2a7ded
tpl: Skip dot and temp files inside /layouts
...
Fixes #13579
2025-04-10 18:41:01 +02:00
hugoreleaser
648204b3f1
releaser: Prepare repository for 0.147.0-DEV
...
[ci skip]
2025-04-10 15:13:26 +00:00
hugoreleaser
5d1b9d3985
releaser: Bump versions for release of 0.146.0
...
[ci skip]
2025-04-10 14:57:56 +00:00
Bjørn Erik Pedersen
383dd82f95
tpl: Warn and skip non-hook templates inside /layouts/_markup
...
Fixes #13577
2025-04-10 16:54:05 +02:00
Bjørn Erik Pedersen
653f1c1d46
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
2025-04-10 13:04:51 +02:00
Bjørn Erik Pedersen
5be51ac3db
Squashed 'docs/' changes from d1a251933..dc7a9ae12
...
dc7a9ae12 content: Update JS options
07d3d8803 npm: Use tilde ranges for versions
e06362a13 Minor grammar fixes
c42db0838 content: Algolia DocSearch clarification
d67412b82 deps: Upgrade to TailwindCSS 4.1.0
da1fb12d3 theme: Update Lato font path for images.Text example
140fa3bb9 Update introduction.md
7b1fcca27 content: Fix links to embedded template source
908a55532 theme: Improve dark mode syntax highlighting background
d830e5962 Update XxHash.md
807be5dbf Update Defer.md
4b56693f6 content: Update GitHub Pages sample workflow
57b766fba Update TailwindCSS.md
64982ab6a Update TailwindCSS.md
1b6e879c6 Update TailwindCSS.md
e67cbcdd2 content: Add caching to the GitHub Pages workflow example
b7ca3b07c Update index.md
14e1a3977 Update XxHash.md
980f344ae Update XxHash.md
6b815f03e theme: Remove aria-label attribute from links
1c00bbc45 theme: Update npm dependencies
533149bf9 theme: Include section pages in related content
2b6bda6bd content: Fix typos
92ce95cbb content: Miscellaneous edits
f12936681 theme: Add a simple LRU cache for search
339ca3388 Fix the previous broken commit
8537e59e0 Make it into a non-link
e13f17d29 Add Algolia logo/link to the search listing dialog
d3e09e886 content: Fix typo
7217f64b6 content: Miscellaneous edits
51aa1ae73 content: Improve some examples
8ebaa53f9 theme: Adjust shortcodes
898870438 theme: Hide anchor until mouse-over
c933ea237 content: More front matter cleanup
f26ca047a content: Miscellaneous edits
e272b2039 theme: Fix inline partial refs
c540e6d29 content: Replace note shortcode calls with blockquote alerts
aef899bc5 theme: Add title and QR code when printing
bd46ef626 theme: Implement blockquote render hook
ddefbefaa content: Improve contributing page
f41d28ee1 content: Adjust usage of whitespace removal with action delimiters
03315336d theme: Use full title in related content sidebar
4f4076364 misc: Document the front matter fields used on this site
2f78d7632 misc: Fix gitignore file
7de6dbab3 content: Fix front matter for several function pages
5d3542ea6 config: Disable tags taxonomy
68bc28d67 content: Add linkTitle to shortcode pages
5f32c92ed theme: Restore deduplication logic for related items
a943a4bb8 theme: Implement related content tooling
fd628be6e content: Replace calls to the code shortcode with fenced code blocks
b23c9a583 content: Fix position of new-in badges
ec056f251 content: Fix typo
245351c84 theme: Adjust spacing in highlighting theme examples
2fcd21ee5 content: Remove "related" array from function and method pages
71d8426ee theme: Create code block render hook
4cdde6649 theme: Adjust number of news items to display
34ab45261 content: Miscellaneous edits
b6cae5cbc content: Consolidate configuration documentation
727ef6f66 theme: Fix overflow issue for wide tables
c4f759e01 Add es2024
93cce62c8 Update support list of more recent targets with js.Build / esbuild
974d0655f Update hosting-on-codeberg.md
b3f0ed9ce content: Add hosting instructions for Codeberg Pages
8217c0900 content: Correct the SourceHut repository URL
a8cf3d28f content: Add hosting instructions for SourceHut Pages
8c059cbe1 theme: Use content adapter for news section
03938c600 Remove some old new-in
5c50a75e8 content: Fix typo
5cf89f2f6 theme: Re-enable banner gtag outbound link tracking
3c555d5f8 One more copy button
94bce999a Add some copy buttons
9e1cc0c2b Update PortableText.md
dd26ac49f Document transform.PortableText
5f632ab32 netlify: Hugo 0.145.0
59e057bb4 Update index.md
d07e07d6c Remove some unused home page front matter
d482657b7 Add footnote about alias to the build front matter key
f0629b77c content: Fix typo
d91c4cccf theme: Fix news items URLs
ca931cd1f theme: Restore RSS feed for news section
e6b870bc9 theme: Adjust copy-to-clipboard button
071851431 Update netlify.toml
e68431034 theme: Format layouts
aa3cd839a theme: Format assets
22ad3eee3 theme: Add some more space on the right for copy buttons
f4a19083a netlify: Hugo 0.144.1
974cb8795 theme: Remove Internet Explorer configs (#2929 )
4a23a1f41 content: Fix typos
d49f15d03 theme: Get the scrollspy back working
720c7ff67 config: Evict getresource cache hourly
1f62ca97e theme: Hide the Turbo progress bar
f6449ace3 Move the dark class up to the html element
074cd1a07 content: Miscellaneous edits
e098a7716 content: Miscellaneous edits
8e1e104aa content: Updates for v0.144.0
18e1aa916 theme: Add anchor links via JS
ac3b5505c Close new-in
bfa4db6b8 netlify: Hugo 0.144.0
fd6e7feee Regen CLI docs
da9d1218a Regen docs helper
5de494ded Merge branch 'tempv0.144.0'
f683e6469 theme: Minor improvements to base template
ef8bf89d8 resources/page: Revise the new contentbasename permalinks tokens
901adb07b resources/page: Add :contentbasename and :contentbasenameorslug permalink tokens
0fca8ef25 all: Change shortcode usage and design to prevent invalid HTML
c41d76613 Update RegularPagesRecursive.md
e93574748 content: Correct return type for strings.Split
3d504abba Revert "content: Add ids to the Netlify steps"
c08c8e15e content: Add ids to the Netlify steps
5a3b470a2 theme: "move" the id from content to article
b878613aa theme: Add page kind as a CSS class to body
269657e8f content: Fix formatting error
664f6c92f config: Change image cache location
fa6b719b1 theme: Reduce ToC to level 2-4
bc16341ca theme: Render mathematical markup with transform.ToMath
14bf9dc70 theme: Add aria-label attribute to search fields
ed42af5b3 theme: Adjust search field and search activation
f042e4970 dev: Add prettier-plugin-void-html
f6ec83533 content: Fix inline shortcode example
0a74210e2 theme: Remove readfile shortcode
334ca06ac theme: Fix some dark mode accessibility as reported by Axe core
02626ff92 theme: aria-lbabel => aria-label
227b76ab7 Add Prettier and config
43ab22428 content: Bump minimum required Go version to 1.23.0
03e54683f modules: Add GOAUTH to module config
9f06a3b9c js/esbuild: Add drop option
ddcd99369 Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
733731253 helpers: Add Chroma styles to docs.yaml
git-subtree-dir: docs
git-subtree-split: dc7a9ae127
2025-04-10 13:02:49 +02:00
Bjørn Erik Pedersen
208a0de6c3
tpl: Add a partial lookup cache
...
````
│ stash.bench │ perf-v146.bench │
│ sec/op │ sec/op vs base │
LookupPartial-10 248.00n ± 0% 14.75n ± 2% -94.05% (p=0.002 n=6)
│ stash.bench │ perf-v146.bench │
│ B/op │ B/op vs base │
LookupPartial-10 48.00 ± 0% 0.00 ± 0% -100.00% (p=0.002 n=6)
│ stash.bench │ perf-v146.bench │
│ allocs/op │ allocs/op vs base │
LookupPartial-10 3.000 ± 0% 0.000 ± 0% -100.00% (p=0.002 n=6)
```
THe speedup above assumes reuse of the same partials over and over again, which I think is not uncommon.
This commits also adds some more lookup benchmarks. The current output of these on my MacBook looks decent:
```
BenchmarkLookupPagesLayout/Single_root-10 3031562 395.5 ns/op 0 B/op 0 allocs/op
BenchmarkLookupPagesLayout/Single_sub_folder-10 2515915 480.9 ns/op 0 B/op 0 allocs/op
BenchmarkLookupPartial-10 84808112 14.13 ns/op 0 B/op 0 allocs/op
BenchmarkLookupShortcode/toplevelpage-10 8111779 148.2 ns/op 0 B/op 0 allocs/op
BenchmarkLookupShortcode/nestedpage-10 8088183 148.6 ns/op 0 B/op 0 allocs/op
```
Note that in the above the partial lookups are cahced, the others not (they are harder to cache because of the page path).
Closes #13571
2025-04-10 11:07:19 +02:00
dependabot[bot]
18d2d2f985
build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.8.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
dependency-version: 1.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-10 10:51:46 +02:00
dependabot[bot]
cd3e3499bd
build(deps): bump golang.org/x/tools from 0.31.0 to 0.32.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-10 10:51:20 +02:00
dependabot[bot]
8cd799aac9
build(deps): bump github.com/evanw/esbuild from 0.25.1 to 0.25.2
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.25.1 to 0.25.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.25.1...v0.25.2 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-version: 0.25.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-10 10:51:07 +02:00
Bjørn Erik Pedersen
d4c6dd16b1
tpl: Add templates.Current
...
This commit also
* Unexport all internal state in TemplateInfo.
* Make the dispatcher keys used for passing context.Context into uint8 from string to save memory allocations.
Co-authored-by: Joe Mooring <joe@mooring.com >
Updates #13571
2025-04-09 20:15:40 +02:00
dependabot[bot]
af0602c343
build(deps): bump golang.org/x/image from 0.25.0 to 0.26.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/image/compare/v0.25.0...v0.26.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.26.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-09 13:07:03 +02:00
dependabot[bot]
650fe6cd01
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.2.3...v2.2.4 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-version: 2.2.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-09 13:06:38 +02:00
dependabot[bot]
d63491beb2
build(deps): bump github.com/alecthomas/chroma/v2 from 2.15.0 to 2.16.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.15.0 to 2.16.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.15.0...v2.16.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-version: 2.16.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-09 13:05:13 +02:00
Joe Mooring
24ac6a9de9
commands/new: Improve theme creation
...
- Update the skeleton structure to match the new template system.
- Add a --format flag to the `hugo new theme` command to control the
format of the site configuration and default archetype files.
- Remove theme.toml. This file's presence can be confusing for new
users, and the README in the themes repository already has an example.
- Remove the LICENSE and README files from the skeleton. These files
are not needed for a theme to work, and they can be added later by
the user if desired.
Closes #13489
Closes #13544
2025-04-08 16:35:46 +02:00
dependabot[bot]
e6e18e9122
build(deps): bump golang.org/x/net from 0.37.0 to 0.39.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.37.0 to 0.39.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.39.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-08 12:14:30 +02:00
dependabot[bot]
43af3bc07d
build(deps): bump github.com/bep/imagemeta from 0.10.0 to 0.11.0
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-version: 0.11.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-08 12:02:20 +02:00
Joe Mooring
10b55439a8
deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.3.0 => v0.3.1
2025-04-07 21:33:06 +02:00
Joe Mooring
1e00842489
tpl/tplimpl: Update embedded pagination template
2025-04-07 21:29:53 +02:00
Bjørn Erik Pedersen
83cfdd78ca
Reimplement and simplify Hugo's template system
...
See #13541 for details.
Fixes #13545
Fixes #13515
Closes #7964
Closes #13365
Closes #12988
Closes #4891
2025-04-06 20:59:41 +02:00
Bjørn Erik Pedersen
812ea0b325
config: Use the non-global logger for deprecations when possible
...
To prevent warnings leaking into parallel tests.
2025-04-03 13:43:54 +02:00
Joe Mooring
07cbe5701e
tpl/time: Add time.In function
...
Closes #13548
2025-04-03 09:45:51 +02:00
Joe Mooring
c15ebce2fd
resources: Add option to silence dependency deprecation warnings
...
Closes #13530
2025-03-29 19:04:53 +01:00
Joe Mooring
6f14dbe24c
tpl/tplimpl: Fix full screen option in vimeo and youtube shortcodes
...
Closes #13531
Co-authored-by: Stefan Ritter <60473875+gideonstar-git@users.noreply.github.com >
2025-03-27 12:32:00 +01:00
Bjørn Erik Pedersen
8d2379bcb3
common/hreflect: Replace the map/RWMutex method cache with sync.Map
...
It's much faster when running in parallel:
```
GetMethodByName-10 125.1n ± 6% 181.7n ± 7% +45.30% (p=0.002 n=6)
GetMethodByNamePara-10 770.10n ± 1% 24.77n ± 9% -96.78% (p=0.002 n=6)
```
2025-03-26 14:24:51 +01:00
dependabot[bot]
26d986fc0d
build(deps): bump golang.org/x/tools from 0.30.0 to 0.31.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.30.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-25 12:02:15 +01:00
dependabot[bot]
ebc0693659
build(deps): bump github.com/getkin/kin-openapi from 0.129.0 to 0.131.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.129.0 to 0.131.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.129.0...v0.131.0 )
---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-25 12:02:03 +01:00
dependabot[bot]
7ca6bb06b6
build(deps): bump github.com/spf13/afero from 1.11.0 to 1.14.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.11.0 to 1.14.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.11.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-25 12:00:07 +01:00
dependabot[bot]
bddd2f9001
build(deps): bump github.com/bep/imagemeta from 0.9.0 to 0.10.0
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-24 10:45:08 +01:00
dependabot[bot]
1c691358f7
build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2
...
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-24 10:44:37 +01:00
dependabot[bot]
17db4edb02
build(deps): bump github.com/evanw/esbuild from 0.24.2 to 0.25.1
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.24.2 to 0.25.1.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.1 )
---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-24 10:44:16 +01:00
dependabot[bot]
3968f9158e
build(deps): bump github.com/bep/godartsass/v2 from 2.4.0 to 2.4.1
...
Bumps [github.com/bep/godartsass/v2](https://github.com/bep/godartsass ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/bep/godartsass/releases )
- [Commits](https://github.com/bep/godartsass/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: github.com/bep/godartsass/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-24 10:43:58 +01:00
dependabot[bot]
e9bd2373a0
build(deps): bump golang.org/x/net from 0.35.0 to 0.37.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.35.0 to 0.37.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-23 21:01:52 +01:00
Joe Mooring
a6bd67793b
common/hexec: Remove github.com/cli/safeexec
...
We began using the safeexec package in v0.79.1 to address
https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq .
The vulnerability was addressed by the Go team in 1.19, so the safeexec
package is no longer needed.
Closes #13516
2025-03-23 13:55:42 +01:00
Ville Vesilehto
f34cdc382a
parser/metadecoder: Improve errors for non-map XML root values
...
Previously, the XML decoder would panic when encountering a root element with
a non-map value due to an unsafe type assertion.
The fix adds proper type checking before the map conversion and provides
clear error messages to help users identify and fix invalid XML structures.
Example error for invalid XML like:
<root>just text</root>
Will now return:
"XML root element 'root' must be a map/object, got string"
2025-03-22 18:48:23 +01:00
Bjørn Erik Pedersen
52561d561a
identity: Use clear to clear the finder seen map
...
Faster:
```
Finder/Find_one-10 172.8n ± 26% 129.3n ± 2% -25.18% (p=0.002 n=6)
Finder/Find_none-10 174.0n ± 1% 130.6n ± 0% -24.94% (p=0.002 n=6)
```
2025-03-15 19:05:45 +01:00
dependabot[bot]
f4f21f5ea3
build(deps): bump github.com/bep/godartsass/v2 from 2.3.2 to 2.4.0
...
Bumps [github.com/bep/godartsass/v2](https://github.com/bep/godartsass ) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/bep/godartsass/releases )
- [Commits](https://github.com/bep/godartsass/compare/v2.3.2...v2.4.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/godartsass/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-15 18:37:33 +01:00
Joe Mooring
a98ec3bd01
commands/gen: Set url in command pages to /docs/reference/commands/
2025-03-14 21:11:46 +01:00
khayyam
d28c84a871
cache: Apply httpcache defaults for polling config
...
Previously, compiling the config with partial or missing poll configs
would introduce a panic. This ensures that the default poll configs
are applied in such scenarios to ensure config is valid.
Fixes #13471
2025-03-14 14:37:26 +01:00
dependabot[bot]
61c39ae63b
build(deps): bump golang.org/x/image from 0.24.0 to 0.25.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/image/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-13 16:17:49 +01:00
Bjørn Erik Pedersen
2037137fbf
deps: Upgrade golang.org/x/mod v0.23.0 => v0.24.0
...
Closes #13484
2025-03-12 16:24:48 +01:00
dependabot[bot]
d78d4cf161
build(deps): bump github.com/bep/overlayfs from 0.9.2 to 0.10.0
...
Bumps [github.com/bep/overlayfs](https://github.com/bep/overlayfs ) from 0.9.2 to 0.10.0.
- [Release notes](https://github.com/bep/overlayfs/releases )
- [Commits](https://github.com/bep/overlayfs/compare/v0.9.2...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/overlayfs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-11 21:03:49 +01:00
dependabot[bot]
f9aae1581b
build(deps): bump github.com/bep/lazycache from 0.7.0 to 0.8.0
...
Bumps [github.com/bep/lazycache](https://github.com/bep/lazycache ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/bep/lazycache/releases )
- [Commits](https://github.com/bep/lazycache/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/lazycache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-11 21:03:27 +01:00
Joe Mooring
b9add1c702
tpl/tplimpl: Add loading attribute to Vimeo shortcode
...
Closes #13445
2025-03-11 21:02:12 +01:00
dependabot[bot]
b0686712ba
build(deps): bump github.com/bep/imagemeta from 0.8.4 to 0.9.0
...
Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta ) from 0.8.4 to 0.9.0.
- [Release notes](https://github.com/bep/imagemeta/releases )
- [Commits](https://github.com/bep/imagemeta/compare/v0.8.4...v0.9.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-11 16:51:32 +01:00
dependabot[bot]
93d9c0533a
build(deps): bump github.com/bep/simplecobra from 0.5.0 to 0.6.0
...
Bumps [github.com/bep/simplecobra](https://github.com/bep/simplecobra ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/bep/simplecobra/releases )
- [Commits](https://github.com/bep/simplecobra/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/simplecobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-11 16:51:19 +01:00
Joe Mooring
93df17661f
commands: Add --omitEmpty flag to gen chromastyles
...
Closes #13475
2025-03-11 16:50:59 +01:00
Will Faught
eebea9ec41
tpl: Add trailing newline to robots.txt template
2025-03-05 15:02:50 +01:00
Bjørn Erik Pedersen
3f2e1c08e3
commands: Skip flaky test on Windows
...
Closes #13465
2025-03-03 12:50:33 +01:00
Hannes Braun
3a11d22da3
resources/image: Mark loong64 as FMA-using architecture
2025-02-26 21:17:06 +01:00
hugoreleaser
cb4a097190
releaser: Prepare repository for 0.146.0-DEV
...
[ci skip]
2025-02-26 15:58:38 +00:00
hugoreleaser
666444f0a5
releaser: Bump versions for release of 0.145.0
...
[ci skip]
2025-02-26 15:41:25 +00:00
margau
e5eecbd9bc
github: Build docker image with both extended and withdeploy tags
2025-02-26 16:33:22 +01:00
coliff
4094a1e12c
all: Typo fixes
2025-02-26 15:10:28 +01:00
Bjørn Erik Pedersen
6927e6f048
deps: Upgrade github.com/rogpeppe/go-internal v1.13.1 => v1.14.1
...
Closes #13449
2025-02-26 14:43:03 +01:00
Bjørn Erik Pedersen
c498d0fe1e
Use the page path and not the backing filename as the last resort in the default sort
...
This should:
1. Fix some (rare) tiebreaker issues when sorting pages from multiple content adapters.
2. Improve the sorting for pages without a backing file.
2025-02-26 13:06:26 +01:00
Bjørn Erik Pedersen
521911a576
all: Run modernize -fix ./...
2025-02-26 11:44:25 +01:00
dependabot[bot]
b7ae24b9c2
build(deps): bump github.com/yuin/goldmark-emoji from 1.0.4 to 1.0.5
...
Bumps [github.com/yuin/goldmark-emoji](https://github.com/yuin/goldmark-emoji ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/yuin/goldmark-emoji/releases )
- [Commits](https://github.com/yuin/goldmark-emoji/compare/v1.0.4...v1.0.5 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark-emoji
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-26 10:56:23 +01:00
Christian Oliff
2f4e666d7e
tpl: HTTPS the instagram Shortcode JS
...
This JavaScript will always load over HTTPS so it's best to specify that. Protocol-less loaded resources are an anti-pattern (REF: https://www.paulirish.com/2010/the-protocol-relative-url/ )
2025-02-26 09:27:31 +01:00
dependabot[bot]
1a4851f138
build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-25 19:41:18 +01:00
dependabot[bot]
d1f23309bf
build(deps): bump github.com/tetratelabs/wazero from 1.8.2 to 1.9.0
...
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero ) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/tetratelabs/wazero/releases )
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.8.2...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/tetratelabs/wazero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-25 19:40:01 +01:00
Bjørn Erik Pedersen
04f21b4d80
Add transform.PortableText
...
Using this in a content adapter could look like this:
```handlebars
{{ $projectID := "<myproject>" }}
{{ $useCached := true }}
{{ $api := "api" }}
{{ if $useCached }}
{{/* See https://www.sanity.io/docs/api-cdn */}}
{{ $api = "apicdn" }}
{{ end }}
{{ $url := printf "https://%s.%s.sanity.io/v2021-06-07/data/query/production " $projectID $api }}
{{/* prettier-ignore-start */ -}}
{{ $q := `*[_type == 'post']{
title, publishedAt, summary, slug, body[]{
...,
_type == "image" => {
...,
asset->{
_id,
path,
url,
altText,
title,
description,
metadata {
dimensions {
aspectRatio,
width,
height
}
}
}
}
},
}`
}}
{{/* prettier-ignore-end */ -}}
{{ $body := dict "query" $q | jsonify }}
{{ $opts := dict "method" "post" "body" $body }}
{{ $t := debug.Timer "sanity.get" }}
{{ $r := resources.GetRemote $url $opts }}
{{ $t.Stop }}
{{ $m := $r | transform.Unmarshal }}
{{ $result := $m.result }}
{{ $t := debug.Timer "sanity.parse" }}
{{ range $result }}
{{ if not .slug }}
{{ continue }}
{{ end }}
{{ $markdown := transform.PortableText .body }}
{{ $t.Stop }}
{{ $content := dict
"mediaType" "text/markdown"
"value" $markdown
}}
{{ $params := dict
"portabletext" (.body | jsonify (dict "indent" " "))
}}
{{ $page := dict
"content" $content
"kind" "page"
"path" .slug.current
"title" .title
"date" (.publishedAt | time )
"summary" .summary
"params" $params
}}
{{ $.AddPage $page }}
{{ end }}
```
2025-02-25 19:35:47 +01:00
Martey Dodoo
ab9e545760
readme: Fix relative links in Editions section
...
Make relative gohugo.io links used in Editions section of README
absolute so that they resolve successfully.
2025-02-25 18:26:05 +01:00
Bjørn Erik Pedersen
381c0da85d
Fix some related content issues with content adapters
...
Fixes #13443
2025-02-25 14:14:56 +01:00
Bjørn Erik Pedersen
227e429267
Fix potential nilpointer in httpcache config
2025-02-24 18:42:50 +01:00
Joe Mooring
d0ce942190
hugolib: Deprecate _build front matter key in favor of build
...
We effectively aliased "_build" to "build" in v0.123.0, and
removed "_build" from the documentation at the same time.
2025-02-24 10:13:53 +01:00
Joe Mooring
4fd7f3233f
snap: Update Node.js to 22.x
2025-02-22 07:49:02 -08:00
Bjørn Erik Pedersen
c3d435acfa
Fix --printPathWarnings when site calls templates.Defer
...
This issue was introduced recently in eb7a5aabaa .
Fixes #13420
2025-02-19 12:59:40 +01:00
hugoreleaser
669216e204
releaser: Prepare repository for 0.145.0-DEV
...
[ci skip]
2025-02-18 12:29:51 +00:00