aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-08-01build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0dependabot/go_modules/github.com/fatih/color-1.17.0dependabot[bot]
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.16.0 to 1.17.0. - [Release notes](https://github.com/fatih/color/releases) - [Commits](https://github.com/fatih/color/compare/v1.16.0...v1.17.0) --- updated-dependencies: - dependency-name: github.com/fatih/color dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-08-01build(deps): bump github.com/evanw/esbuild from 0.21.4 to 0.23.0dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.21.4 to 0.23.0. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.21.4...v0.23.0) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-08-01build(deps): bump github.com/tdewolff/minify/v2 from 2.20.36 to 2.20.37dependabot[bot]
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.36 to 2.20.37. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.20.36...v2.20.37) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2024-08-01Revert "deps: Set toolchain go1.21.0 in go.mod"Bjørn Erik Pedersen
This reverts commit 78c9a18b0cb7df4d9788ee469ab6aa24f14af047.
2024-08-01Run go mod tidyBjørn Erik Pedersen
2024-08-01resources/page: Expand parmalinks tokens in `url`n1xx1
This change allows to use permalink tokens in url front matter fields. This should be useful to target more specific pages instead of using a global permalink configuration. It's expected to be used with cascade. Fixes #9714
2024-08-01Bump to go 1.21 in go.modBjørn Erik Pedersen
2024-08-01tpl: Sync Go template packages with the Go 1.22.5 sourceBjørn Erik Pedersen
2024-08-01Upgrade to Go 1.22.5Bjørn Erik Pedersen
2024-07-31deps: Set toolchain go1.21.0 in go.modBjørn Erik Pedersen
To hopefully resolve dependabot issues.
2024-07-31deps: Upgrade golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d => ↵Bjørn Erik Pedersen
v0.23.0 Main motivation is to try to get dependabot running again.
2024-07-31Shorten processed image filenamesBjørn Erik Pedersen
Fixes #12688 Fixes #12656
2024-07-31Consolidate all hashing to the common/hashing packageBjørn Erik Pedersen
And remove now unsued hashing funcs.
2024-07-31Replace the MD5 hashing of images with xxHashBjørn Erik Pedersen
Note that we only use this for change detection. The previous implementation invoked `MD5FromReaderFast` that created a MD5 has from 8 64 bytes chunks in the file, which is obviously very fast. The new implementation creates the hash from the entire file and ... seems to be even more effective: ``` name old time/op new time/op delta HashImage-10 9.45µs ±21% 10.89µs ± 1% ~ (p=0.343 n=4+4) name old alloc/op new alloc/op delta HashImage-10 144B ± 0% 8B ± 0% -94.44% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashImage-10 4.00 ± 0% 1.00 ± 0% -75.00% (p=0.029 n=4+4) ```
2024-07-31resources: Add BenchmarkHashImageBjørn Erik Pedersen
2024-07-31deps: Replace github.com/mitchellh/hashstructure/v2 with ↵Bjørn Erik Pedersen
github.com/gohugoio/hashstructure The old repo is archived and no longer maintained. See #11644
2024-07-31identity: Use xxHash in hashstructure (note)Bjørn Erik Pedersen
``` name old time/op new time/op delta HashString/n28-10 133ns ± 9% 107ns ±10% -19.58% (p=0.029 n=4+4) HashString/n112-10 243ns ± 5% 121ns ± 4% -50.08% (p=0.029 n=4+4) HashString/n448-10 698ns ± 3% 174ns ± 5% -75.02% (p=0.029 n=4+4) HashString/n1792-10 2.58µs ± 4% 0.38µs ± 4% -85.11% (p=0.029 n=4+4) HashString/n7168-10 10.0µs ± 3% 1.3µs ± 4% -86.91% (p=0.029 n=4+4) name old alloc/op new alloc/op delta HashString/n28-10 80.0B ± 0% 72.0B ± 0% -10.00% (p=0.029 n=4+4) HashString/n112-10 160B ± 0% 152B ± 0% -5.00% (p=0.029 n=4+4) HashString/n448-10 496B ± 0% 488B ± 0% -1.61% (p=0.029 n=4+4) HashString/n1792-10 1.84kB ± 0% 1.83kB ± 0% -0.43% (p=0.029 n=4+4) HashString/n7168-10 8.24kB ± 0% 8.23kB ± 0% -0.06% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashString/n28-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n112-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n448-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n1792-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n7168-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) ```
2024-07-31identity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2Bjørn Erik Pedersen
``` name old time/op new time/op delta HashString/n28-10 131ns ± 7% 133ns ±19% ~ (p=0.343 n=4+4) HashString/n112-10 237ns ± 5% 241ns ± 3% ~ (p=0.229 n=4+4) HashString/n448-10 688ns ± 3% 687ns ± 1% ~ (p=0.886 n=4+4) HashString/n1792-10 2.51µs ± 3% 2.56µs ± 3% ~ (p=0.200 n=4+4) HashString/n7168-10 10.1µs ± 2% 10.0µs ± 4% ~ (p=0.686 n=4+4) name old alloc/op new alloc/op delta HashString/n28-10 80.0B ± 0% 80.0B ± 0% ~ (all equal) HashString/n112-10 160B ± 0% 160B ± 0% ~ (all equal) HashString/n448-10 496B ± 0% 496B ± 0% ~ (all equal) HashString/n1792-10 1.84kB ± 0% 1.84kB ± 0% ~ (all equal) HashString/n7168-10 8.24kB ± 0% 8.24kB ± 0% ~ (all equal) name old allocs/op new allocs/op delta HashString/n28-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n112-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n448-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n1792-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n7168-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) ``` Closes #11644
2024-07-31identity: Add BenchmarkHashStringBjørn Erik Pedersen
2024-07-31deps: Upgrade github.com/bep/imagemeta v0.7.4 => v0.7.5Bjørn Erik Pedersen
2024-07-31deps: Upgrade github.com/aws/aws-sdk-go-v2 v1.26.1 => v1.30.3Bjørn Erik Pedersen
2024-07-31deps: Upgrade to github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0Bjørn Erik Pedersen
2024-07-29releaser: Prepare repository for 0.131.0-DEVrelease-0.130.0hugoreleaser
[ci skip]
2024-07-29releaser: Bump versions for release of 0.130.0v0.130.0hugoreleaser
[ci skip]
2024-07-29math: Add trigonometric functions and some angle helper functionsraoulb
This commit adds these new template functions in the `math` namespace: math.Acos math.Asin math.Atan math.Atan2 math.Cos math.Pi math.Sin math.Tan math.ToDegrees math.ToRadians Co-authored-by: Joe Mooring <[email protected]>
2024-07-23deps: Upgrade github.com/bep/imagemeta v0.7.3 => v0.7.4Bjørn Erik Pedersen
2024-07-21deps: Upgrade github.com/bep/imagemeta v0.7.1 => v0.7.3Bjørn Erik Pedersen
2024-07-20readme: Pull the star history down a littleBjørn Erik Pedersen
2024-07-20deps: Upgraded github.com/bep/imagemeta v0.7.0 => v0.7.1Bjørn Erik Pedersen
Fixes #12669
2024-07-20Switch EXIF libraryBjørn Erik Pedersen
Closes #10855 Closes #8586 Closes #8996
2024-07-20readme: Add Star HistoryBjørn Erik Pedersen
2024-07-17releaser: Prepare repository for 0.130.0-DEVrelease-0.129.0hugoreleaser
[ci skip]
2024-07-17releaser: Bump versions for release of 0.129.0v0.129.0hugoreleaser
[ci skip]
2024-07-17tpl: Use xxHash instead of MD5 to hash the deferred templatesBjørn Erik Pedersen
Motivation is performance. These templates are typically very small, so the win is minor, I guess.
2024-07-17Throw error if resources.PostProcess is used in a deferred templateBjørn Erik Pedersen
That just doesn't work. See #12655
2024-07-17deps: Upgrade github.com/bep/gitmap v1.4.0 => v1.6.0 (note)Bjørn Erik Pedersen
Closes #8627
2024-07-08deps: Go mod tidyBjørn Erik Pedersen
2024-07-08deps: Upgraded github.com/tdewolff/minify/v2 v2.20.20 => v2.20.36Bjørn Erik Pedersen
2024-07-08deps: Upgrade to golang.org/x/image v0.18.0Bjørn Erik Pedersen
2024-07-07commands: Fix --navigateToChanged server behavior when editing headless contentBjørn Erik Pedersen
Fixes #12648
2024-07-07commands: Simplify the browser live reload logicBjørn Erik Pedersen
And improve the logging for live reload. Closes #12643
2024-07-06Use xxHash for the change detectorBjørn Erik Pedersen
Much faster compared to MD5: ``` name old time/op new time/op delta HashingFs-10 21.3µs ± 2% 3.2µs ±17% -84.96% (p=0.029 n=4+4) name old alloc/op new alloc/op delta HashingFs-10 12.9kB ± 0% 12.8kB ± 1% -1.31% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashingFs-10 10.0 ± 0% 7.0 ± 0% -30.00% (p=0.029 n=4+4) ``` Updates #12643
2024-07-06source: Expose GitInfo BodyPeskyPotato
Updated bep/gitmap to v1.4.0, to get commit message's Body. Added Body to GitInfo struct. Docs upated with commit body example. Fixes #10905
2024-07-06commands: Fix hugo mod get -u ./...Bjørn Erik Pedersen
Fixes #12625
2024-07-06Add hash.XxHashBjørn Erik Pedersen
Also move the non crypto hash funcs into this new package. This is much faster than e.g. MD5, especially for larger inputs: ``` BenchmarkXxHash/xxHash_43-10 9917955 112.2 ns/op 56 B/op 4 allocs/op BenchmarkXxHash/mdb5_43-10 6017239 204.1 ns/op 96 B/op 3 allocs/op BenchmarkXxHash/fnv32a_43-10 14407333 82.30 ns/op 16 B/op 1 allocs/op BenchmarkXxHash/xxHash_4300-10 2916892 409.7 ns/op 56 B/op 4 allocs/op BenchmarkXxHash/mdb5_4300-10 159748 7491 ns/op 4912 B/op 3 allocs/op BenchmarkXxHash/fnv32a_4300-10 218210 5510 ns/op 16 B/op 1 allocs/op ``` Fixes #12635
2024-07-04releaser: Prepare repository for 0.129.0-DEVrelease-0.128.2hugoreleaser
[ci skip]
2024-07-04releaser: Bump versions for release of 0.128.2v0.128.2hugoreleaser
[ci skip]
2024-07-04Fix site.GetPage, never do short lookups for paths with leadig slashBjørn Erik Pedersen
Fixes #12638
2024-07-02releaser: Prepare repository for 0.129.0-DEVrelease-0.128.1hugoreleaser
[ci skip]
2024-07-02releaser: Bump versions for release of 0.128.1v0.128.1hugoreleaser
[ci skip]