]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
23 months agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.3
dependabot[bot] [Mon, 26 Aug 2024 08:38:16 +0000 (08:38 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.3

Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.2.2 to 2.2.3.
- [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.2...v2.2.3)

---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agooutput: Fix docshelper template lookup order for AMP pages
Joe Mooring [Mon, 26 Aug 2024 14:27:43 +0000 (07:27 -0700)]
output: Fix docshelper template lookup order for AMP pages

Fixes #12797

23 months agohugolib: Add a test for overriding _internal templates
Bjørn Erik Pedersen [Wed, 28 Aug 2024 06:17:16 +0000 (08:17 +0200)]
hugolib: Add a test for overriding _internal templates

23 months agoreleaser: Prepare repository for 0.134.0-DEV
hugoreleaser [Mon, 26 Aug 2024 14:13:52 +0000 (14:13 +0000)]
releaser: Prepare repository for 0.134.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.133.1
hugoreleaser [Mon, 26 Aug 2024 13:58:46 +0000 (13:58 +0000)]
releaser: Bump versions for release of 0.133.1

[ci skip]

23 months agoRevert "Adjust Circleci workflow to make the Docker images build"
Bjørn Erik Pedersen [Mon, 26 Aug 2024 13:56:39 +0000 (15:56 +0200)]
Revert "Adjust Circleci workflow to make the Docker images build"

This reverts commit 445283a5932b4e0f5fc377478fa1351547ea0426.

23 months agoAdjust Circleci workflow to make the Docker images build
Bjørn Erik Pedersen [Mon, 26 Aug 2024 10:39:07 +0000 (12:39 +0200)]
Adjust Circleci workflow to make the Docker images build

Closes #12753

23 months agoFix missing method NameNormalized panic
Bjørn Erik Pedersen [Sun, 25 Aug 2024 20:51:38 +0000 (22:51 +0200)]
Fix missing method NameNormalized panic

Closes #12795

23 months agodeps: Upgraded github.com/bep/imagemeta v0.8.0 => v0.8.1
Bjørn Erik Pedersen [Sat, 24 Aug 2024 16:52:03 +0000 (18:52 +0200)]
deps: Upgraded github.com/bep/imagemeta v0.8.0 => v0.8.1

Closes #12793

23 months agoconfig: Fix pagination deprecation messages
Joe Mooring [Wed, 21 Aug 2024 19:05:20 +0000 (12:05 -0700)]
config: Fix pagination deprecation messages

23 months agoRevert "releaser: Rework the run conditions"
Bjørn Erik Pedersen [Sun, 18 Aug 2024 17:12:03 +0000 (19:12 +0200)]
Revert "releaser: Rework the run conditions"

This reverts commit 702b1e8b81c889f72207b5b8d0478c300c8ccf3e.

23 months agoRevert "circleci: Upgrade to version 2.1 of the schema"
Bjørn Erik Pedersen [Sun, 18 Aug 2024 17:12:02 +0000 (19:12 +0200)]
Revert "circleci: Upgrade to version 2.1 of the schema"

This reverts commit c8f850ae1734def05687b07213e124c2b585349d.

23 months agocircleci: Upgrade to version 2.1 of the schema
Bjørn Erik Pedersen [Sun, 18 Aug 2024 16:49:42 +0000 (18:49 +0200)]
circleci: Upgrade to version 2.1 of the schema

Updates #12753

23 months agoreleaser: Rework the run conditions
Bjørn Erik Pedersen [Sun, 18 Aug 2024 16:39:55 +0000 (18:39 +0200)]
releaser: Rework the run conditions

Now after actually reading the CircleCI docs...

Closes #12753

23 months agoRevert "releaser: Rework the run conditions"
Bjørn Erik Pedersen [Sun, 18 Aug 2024 10:00:47 +0000 (12:00 +0200)]
Revert "releaser: Rework the run conditions"

This reverts commit 777534b2a46127ad0392562b4de56ba3ff70a810.

Circle ci throws validation errors:

```
Config does not conform to schema: {:workflows {:release {:jobs [{:prepare_release (not (map? nil)), :when {:and disallowed-key}} nil nil nil]}}}
```

23 months agoreleaser: Rework the run conditions
Bjørn Erik Pedersen [Sun, 18 Aug 2024 09:47:51 +0000 (11:47 +0200)]
releaser: Rework the run conditions

Closes #12753

23 months agoreleaser: Prepare repository for 0.134.0-DEV
hugoreleaser [Sat, 17 Aug 2024 20:11:05 +0000 (20:11 +0000)]
releaser: Prepare repository for 0.134.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.133.0
hugoreleaser [Sat, 17 Aug 2024 19:57:41 +0000 (19:57 +0000)]
releaser: Bump versions for release of 0.133.0

[ci skip]

23 months agoAdd config options page.nextPrevSortOrder/nextPrevInSectionSortOrder
Bjørn Erik Pedersen [Sat, 17 Aug 2024 13:16:09 +0000 (15:16 +0200)]
Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder

See #12776

23 months agobuild(deps): bump gocloud.dev from 0.38.0 to 0.39.0
dependabot[bot] [Thu, 15 Aug 2024 08:47:59 +0000 (08:47 +0000)]
build(deps): bump gocloud.dev from 0.38.0 to 0.39.0

Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.38.0 to 0.39.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: gocloud.dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agodeps: Upgrade github.com/tetratelabs/wazero v1.7.4-0.20240805170331-2b12e189eeec...
Bjørn Erik Pedersen [Thu, 15 Aug 2024 08:20:43 +0000 (10:20 +0200)]
deps: Upgrade github.com/tetratelabs/wazero v1.7.4-0.20240805170331-2b12e189eeec => v1.8.0

23 months agoUpgrade to Go 1.23
Bjørn Erik Pedersen [Wed, 14 Aug 2024 09:34:21 +0000 (11:34 +0200)]
Upgrade to Go 1.23

Fixes #12763

23 months agoreleaser: Prepare repository for 0.133.0-DEV
hugoreleaser [Wed, 14 Aug 2024 16:31:14 +0000 (16:31 +0000)]
releaser: Prepare repository for 0.133.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.132.2
hugoreleaser [Wed, 14 Aug 2024 16:17:21 +0000 (16:17 +0000)]
releaser: Bump versions for release of 0.132.2

[ci skip]

23 months agomarkup/goldmark/blockquotes: Fix handling of lower/mixed case GitHub alerts
Bjørn Erik Pedersen [Wed, 14 Aug 2024 14:57:18 +0000 (16:57 +0200)]
markup/goldmark/blockquotes: Fix handling of lower/mixed case GitHub alerts

Fixes #12767

23 months agotpl/transform: Don't run ToMath tests in parallel
Bjørn Erik Pedersen [Wed, 14 Aug 2024 13:26:22 +0000 (15:26 +0200)]
tpl/transform: Don't run ToMath tests in parallel

Closes #12765

23 months agoresources: Add URI GetRemote error
b10c [Wed, 14 Aug 2024 11:24:58 +0000 (13:24 +0200)]
resources: Add URI GetRemote error

Previouly, only "ERROR failed to fetch remote resource: Forbidden"
would be shown when a resource failed to load. In my case, a tweet's
author I was embedding using the twitter shortcode switched his profile
to private which resulted in my blog failing to build. To figure out
where the originates, I added the log to the error message.

23 months agologgers: Omit map nil check
Bjørn Erik Pedersen [Tue, 13 Aug 2024 18:10:43 +0000 (20:10 +0200)]
loggers: Omit map nil check

23 months agogithub: Add workflow_dispatch to the Docker workflow
Bjørn Erik Pedersen [Tue, 13 Aug 2024 14:28:33 +0000 (16:28 +0200)]
github: Add workflow_dispatch to the Docker workflow

Closes #12753

23 months agogithub: Simplify Docker workflow / only trigger on new tags
Bjørn Erik Pedersen [Tue, 13 Aug 2024 14:17:56 +0000 (16:17 +0200)]
github: Simplify Docker workflow / only trigger on new tags

See #12753

23 months agogithub: Simplify Docker workflow
Bjørn Erik Pedersen [Tue, 13 Aug 2024 14:16:45 +0000 (16:16 +0200)]
github: Simplify Docker workflow

See #12753

23 months agoreleaser: Prepare repository for 0.133.0-DEV
hugoreleaser [Tue, 13 Aug 2024 10:24:54 +0000 (10:24 +0000)]
releaser: Prepare repository for 0.133.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.132.1
hugoreleaser [Tue, 13 Aug 2024 10:10:10 +0000 (10:10 +0000)]
releaser: Bump versions for release of 0.132.1

[ci skip]

23 months agogithub: Adjust image workflow
Bjørn Erik Pedersen [Tue, 13 Aug 2024 09:32:39 +0000 (11:32 +0200)]
github: Adjust image workflow

See #12753

23 months agoFix nilpointer regression with empty blockquotes
Bjørn Erik Pedersen [Tue, 13 Aug 2024 08:58:59 +0000 (10:58 +0200)]
Fix nilpointer regression with empty blockquotes

Fixes #12756

23 months agoreleaser: Prepare repository for 0.133.0-DEV
hugoreleaser [Mon, 12 Aug 2024 15:36:03 +0000 (15:36 +0000)]
releaser: Prepare repository for 0.133.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.132.0
hugoreleaser [Mon, 12 Aug 2024 15:21:36 +0000 (15:21 +0000)]
releaser: Bump versions for release of 0.132.0

[ci skip]

23 months agointernal/warpc: Add license headers
Bjørn Erik Pedersen [Mon, 12 Aug 2024 13:50:29 +0000 (15:50 +0200)]
internal/warpc: Add license headers

23 months agoImprove Katex error handling and fix handling of large expressions
Bjørn Erik Pedersen [Sun, 11 Aug 2024 18:31:17 +0000 (20:31 +0200)]
Improve Katex error handling and fix handling of large expressions

* Make throwOnError=true the new default
* Handle JS errors as part of the RPC request/response flow
* Return a new Result type with .Err on it

This enables constructs on the form:

```handlebars
{{ with transform.ToMath "c = \\foo{a^2 + b^2}" }}
{{ with .Err }}
  {{ warnf "error: %s" . }}
{{ else }}
{{ . }}
{{ end }}
{{ end }}
```

Note that the new `Result` type behaves like `template.HTML` (or a string if needed) when printed, but it will panic if in a error state.

Closes #12748

23 months agoAdd katex option ThrowOnError
Bjørn Erik Pedersen [Sun, 11 Aug 2024 18:57:15 +0000 (20:57 +0200)]
Add katex option ThrowOnError

As an internal option for now. Katex misbehaves in error situations without a value set.

23 months agoAdd some more KaTeX options
Bjørn Erik Pedersen [Sun, 11 Aug 2024 13:25:10 +0000 (15:25 +0200)]
Add some more KaTeX options

And fix the options handling.

Closes #12745
Fixes #12746

23 months agotpl/transform: Make Plainify and ToMath return template.HTML
Bjørn Erik Pedersen [Sun, 11 Aug 2024 10:48:30 +0000 (12:48 +0200)]
tpl/transform: Make Plainify and ToMath return template.HTML

None of these are useful as plain strings in the templates, which forces the users to do `transform.Plainify "foo" | safeHTML`.

If people have trust issues with the output of these functions, they need to just stop using them.

Closes #8732

23 months agodeps: Upgrade github.com/bep/imagemeta v0.7.6 => v0.8.0
Bjørn Erik Pedersen [Sat, 10 Aug 2024 10:44:58 +0000 (12:44 +0200)]
deps: Upgrade github.com/bep/imagemeta v0.7.6 => v0.8.0

Fixes #12741

23 months agoFix compare of uints and ints in eq, gt etc.
Bjørn Erik Pedersen [Fri, 9 Aug 2024 15:54:14 +0000 (17:54 +0200)]
Fix compare of uints and ints in eq, gt etc.

Fixes #12733

23 months agodocs: Regen docshelper
Bjørn Erik Pedersen [Fri, 9 Aug 2024 17:34:13 +0000 (19:34 +0200)]
docs: Regen docshelper

23 months agoAdd build time math rendering
Bjørn Erik Pedersen [Wed, 7 Aug 2024 08:40:54 +0000 (10:40 +0200)]
Add build time math rendering

While very useful on its own (and combined with the passthrough render hooks), this also serves as a proof of concept of using WASI (WebAssembly System Interface) modules in Hugo.

This will be marked _experimental_ in the documentation. Not because it will be removed or changed in a dramatic way, but we need to think a little more how to best set up/configure similar services, define where these WASM files gets stored, maybe we can allow user provided WASM files plugins via Hugo Modules mounts etc.

See these issues for more context:

* https://github.com/gohugoio/hugo/issues/12736
* https://github.com/gohugoio/hugo/issues/12737

See #11927

23 months agogithub: Turn off the image workflow for pull request
Bjørn Erik Pedersen [Fri, 9 Aug 2024 14:47:17 +0000 (16:47 +0200)]
github: Turn off the image workflow for pull request

We need to fix it so it does not publish anything to the remote repo before we can enable that.

23 months agogithub: Update image actions versions and some adjustments
Bjørn Erik Pedersen [Fri, 9 Aug 2024 07:57:16 +0000 (09:57 +0200)]
github: Update image actions versions and some adjustments

Co-authored-by: morre <morre@mor.re>
23 months agogithub: Build and publish Docker image on release
Morre [Fri, 7 Jun 2024 11:31:35 +0000 (13:31 +0200)]
github: Build and publish Docker image on release

Fixes #10760

23 months agoMerge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'
Bjørn Erik Pedersen [Fri, 9 Aug 2024 13:17:43 +0000 (15:17 +0200)]
Merge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'

23 months agoSquashed 'docs/' changes from 9b06f951e..fcc3ed651
Bjørn Erik Pedersen [Fri, 9 Aug 2024 13:17:43 +0000 (15:17 +0200)]
Squashed 'docs/' changes from 9b06f951e..fcc3ed651

fcc3ed651 Remove some expired new-in
a9c5981f5 Fix cascade example
82bb250fa Add some lines about permalinks tokens in front matter
328fe564e Remove some outdated new-in
fb140b153 Hide showcase menu entry
42d9d1c79 Update image formats from which EXIF data can be extracted
09ad56b6e netlify: Hugo 0.130.0
1d503f846 Merge branch 'tempv0.130.0'
e2458074d math: Add trigonometric functions and some angle helper functions
392afc8f9 Disable the showcase section for now
0300750f2 Improve example of image render hook
60a9306af Improve description of the .Site.RegularPages method
8d759175d Fix typos
55daa4554 Update XxHash.md
397c81cb7 Add namespace for hash functions
70fe8d2f0 netlify: Bump Hugo 0.129.0
5a9771aff Merge branch 'tempv0.129.0'
f9146575b Fix typo
e6e1fea49 Fix typo in Hugo docs | functions | partial
732d10ec4 source: Expose GitInfo Body
34c97e639 netlify: Hugo 0.128.2
3270587e9 Fix typo
727c5396e netlify: Hugo 0.128.1
80b6ae99c Update GitHub Pages workflow file example
027134102 Update GitHub Pages workflow file example
2600a8a2e Miscellaneous edits
3fdd5819b Update Build.md
7764005c3 Improve example of render hook directory structure
5e3941d82 Fix typos
748bf065f Restructure templates section
fafbf6566 Update Defer.md
012162e0d Document changes to template functions in v0.128.0
0990ce35b quick-reference: Update emojis
6677a30ef Update Goldmark configuration documentation
4449d530d Document new pagination config
0af8be439 Update Defer.md
56348196d netlify: Hugo 0.128.0
d67b6d82e Update content/en/functions/templates/Defer.md
23d996b3d Update content/en/functions/templates/Defer.md
7f7fb2f27 Document templates.Defer
5ada1e9d5 Fix docs merge (remove shortcode)
d27ee6156 Merge branch 'tempv0.128.0'
5d7317c84 Fix typo
7c18ee546 Update theme
83bfea63b Update theme
b274b3238 Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722'
ff34a035a deploy: Add stripIndexHtml target option
d9e964bdb markup/goldmark: Add the Hugo Goldmark Extras "delete" extension
ac5bd16d2 deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0
25377171b config: Remove extraneous BuildConfig setting
0d2044f6d docs: Regen docshelper
a2548dac9 markup/goldmark: Support extras extension
9d0c86ee8 commands: Add gen chromastyles --lineNumbersTableStyle flag

git-subtree-dir: docs
git-subtree-split: fcc3ed651a1b6431303c2f88f20fa38531c52b3d

23 months agogithub: Update GitHub actions versions
Bjørn Erik Pedersen [Fri, 9 Aug 2024 08:02:50 +0000 (10:02 +0200)]
github: Update GitHub actions versions

23 months agomarkup: Add blockquote render hooks
Bjørn Erik Pedersen [Mon, 5 Aug 2024 14:51:16 +0000 (16:51 +0200)]
markup: Add blockquote render hooks

Closes #12590

23 months agomarkup/goldmark/codeblocks: Simplify codeblcok hook code
Bjørn Erik Pedersen [Mon, 5 Aug 2024 14:36:36 +0000 (16:36 +0200)]
markup/goldmark/codeblocks: Simplify codeblcok hook code

23 months agoAdd render hooks for inline and block passthrough snippets
Bjørn Erik Pedersen [Mon, 5 Aug 2024 09:00:47 +0000 (11:00 +0200)]
Add render hooks for inline and block passthrough snippets

Fixes #11927

23 months agobuild(deps): bump golang.org/x/net from 0.27.0 to 0.28.0
dependabot[bot] [Wed, 7 Aug 2024 09:15:38 +0000 (09:15 +0000)]
build(deps): bump golang.org/x/net from 0.27.0 to 0.28.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.28.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>
23 months agobuild(deps): bump golang.org/x/image from 0.18.0 to 0.19.0
dependabot[bot] [Wed, 7 Aug 2024 08:32:06 +0000 (08:32 +0000)]
build(deps): bump golang.org/x/image from 0.18.0 to 0.19.0

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/image/compare/v0.18.0...v0.19.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>
23 months agotpl/cast: Improve float
Bjørn Erik Pedersen [Tue, 6 Aug 2024 19:16:07 +0000 (21:16 +0200)]
tpl/cast: Improve float

Make it support the new upstream rational number type in Exif.

See #12718

23 months agoSkip TestEchoParam
Bjørn Erik Pedersen [Tue, 6 Aug 2024 17:13:14 +0000 (19:13 +0200)]
Skip TestEchoParam

Is deprecated, will be remvoved soon.

23 months agobuild(deps): bump github.com/bep/imagemeta from 0.7.5 to 0.7.6 (#12720)
dependabot[bot] [Tue, 6 Aug 2024 10:05:52 +0000 (12:05 +0200)]
build(deps): bump github.com/bep/imagemeta from 0.7.5 to 0.7.6 (#12720)

Bumps [github.com/bep/imagemeta](https://github.com/bep/imagemeta) from 0.7.5 to 0.7.6.
- [Release notes](https://github.com/bep/imagemeta/releases)
- [Commits](https://github.com/bep/imagemeta/compare/v0.7.5...v0.7.6)

---
updated-dependencies:
- dependency-name: github.com/bep/imagemeta
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #12718

23 months agoFix deprecation errors
Bjørn Erik Pedersen [Mon, 5 Aug 2024 17:14:07 +0000 (19:14 +0200)]
Fix deprecation errors

23 months agoreleaser: Prepare repository for 0.132.0-DEV
hugoreleaser [Fri, 2 Aug 2024 09:18:21 +0000 (09:18 +0000)]
releaser: Prepare repository for 0.132.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.131.0
hugoreleaser [Fri, 2 Aug 2024 09:03:48 +0000 (09:03 +0000)]
releaser: Bump versions for release of 0.131.0

[ci skip]

23 months agoFix images.AutoOrient regression
Bjørn Erik Pedersen [Fri, 2 Aug 2024 07:37:00 +0000 (09:37 +0200)]
Fix images.AutoOrient regression

Broken in v0.130.0. Added a integration test to avoid future breakage.

Fixes #12712

23 months agorevamp pagegroup tests with quicktest
n1xx1 [Thu, 1 Aug 2024 13:06:28 +0000 (15:06 +0200)]
revamp pagegroup tests with quicktest

23 months agoallow nested params when using Pages.GroupByParam and Pages.GroupByParamDate
n1xx1 [Thu, 1 Aug 2024 11:12:32 +0000 (13:12 +0200)]
allow nested params when using Pages.GroupByParam and Pages.GroupByParamDate

23 months agobuild(deps): bump github.com/bep/godartsass/v2 from 2.0.0 to 2.1.0
dependabot[bot] [Thu, 1 Aug 2024 17:59:03 +0000 (17:59 +0000)]
build(deps): bump github.com/bep/godartsass/v2 from 2.0.0 to 2.1.0

Bumps [github.com/bep/godartsass/v2](https://github.com/bep/godartsass) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/bep/godartsass/releases)
- [Commits](https://github.com/bep/godartsass/compare/v2.0.0...v2.1.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>
23 months agobuild(deps): bump google.golang.org/api from 0.152.0 to 0.189.0
dependabot[bot] [Thu, 1 Aug 2024 14:35:33 +0000 (14:35 +0000)]
build(deps): bump google.golang.org/api from 0.152.0 to 0.189.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.152.0 to 0.189.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.152.0...v0.189.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agobuild(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
dependabot[bot] [Thu, 1 Aug 2024 13:45:33 +0000 (13:45 +0000)]
build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agobuild(deps): bump gocloud.dev from 0.36.0 to 0.38.0
dependabot[bot] [Thu, 1 Aug 2024 13:45:58 +0000 (13:45 +0000)]
build(deps): bump gocloud.dev from 0.36.0 to 0.38.0

Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.36.0 to 0.38.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: gocloud.dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agobuild(deps): bump github.com/gorilla/websocket from 1.5.1 to 1.5.3
dependabot[bot] [Thu, 1 Aug 2024 13:46:06 +0000 (13:46 +0000)]
build(deps): bump github.com/gorilla/websocket from 1.5.1 to 1.5.3

Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agobuild(deps): bump github.com/kyokomi/emoji/v2 from 2.2.12 to 2.2.13
dependabot[bot] [Thu, 1 Aug 2024 13:45:41 +0000 (13:45 +0000)]
build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.12 to 2.2.13

Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.12 to 2.2.13.
- [Release notes](https://github.com/kyokomi/emoji/releases)
- [Commits](https://github.com/kyokomi/emoji/compare/v2.2.12...v2.2.13)

---
updated-dependencies:
- dependency-name: github.com/kyokomi/emoji/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agodeps: Upgrade github.com/hairyhenderson/go-codeowners v0.4.0 => v0.5.0
Bjørn Erik Pedersen [Thu, 1 Aug 2024 11:17:36 +0000 (13:17 +0200)]
deps: Upgrade github.com/hairyhenderson/go-codeowners v0.4.0 => v0.5.0

23 months agobuild(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0
dependabot[bot] [Thu, 1 Aug 2024 11:44:43 +0000 (11:44 +0000)]
build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0

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] <support@github.com>
23 months agobuild(deps): bump github.com/evanw/esbuild from 0.21.4 to 0.23.0
dependabot[bot] [Thu, 1 Aug 2024 10:29:46 +0000 (10:29 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.21.4 to 0.23.0

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] <support@github.com>
23 months agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.20.36 to 2.20.37
dependabot[bot] [Thu, 1 Aug 2024 10:24:20 +0000 (10:24 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.36 to 2.20.37

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] <support@github.com>
23 months agoRevert "deps: Set toolchain go1.21.0 in go.mod"
Bjørn Erik Pedersen [Thu, 1 Aug 2024 11:04:29 +0000 (13:04 +0200)]
Revert "deps: Set toolchain go1.21.0 in go.mod"

This reverts commit 78c9a18b0cb7df4d9788ee469ab6aa24f14af047.

23 months agoRun go mod tidy
Bjørn Erik Pedersen [Thu, 1 Aug 2024 10:22:27 +0000 (12:22 +0200)]
Run go mod tidy

23 months agoresources/page: Expand parmalinks tokens in `url`
n1xx1 [Thu, 1 Aug 2024 10:14:29 +0000 (12:14 +0200)]
resources/page: Expand parmalinks tokens in `url`

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

23 months agoBump to go 1.21 in go.mod
Bjørn Erik Pedersen [Thu, 1 Aug 2024 08:27:55 +0000 (10:27 +0200)]
Bump to go 1.21 in go.mod

23 months agotpl: Sync Go template packages with the Go 1.22.5 source
Bjørn Erik Pedersen [Thu, 1 Aug 2024 08:02:14 +0000 (10:02 +0200)]
tpl: Sync Go template packages with the Go 1.22.5 source

23 months agoUpgrade to Go 1.22.5
Bjørn Erik Pedersen [Thu, 1 Aug 2024 07:49:00 +0000 (09:49 +0200)]
Upgrade to Go 1.22.5

23 months agodeps: Set toolchain go1.21.0 in go.mod
Bjørn Erik Pedersen [Wed, 31 Jul 2024 17:24:26 +0000 (19:24 +0200)]
deps: Set toolchain go1.21.0 in go.mod

To hopefully resolve dependabot issues.

23 months agodeps: Upgrade golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d => v0.23.0
Bjørn Erik Pedersen [Wed, 31 Jul 2024 16:34:46 +0000 (18:34 +0200)]
deps: Upgrade golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d => v0.23.0

Main motivation is to try to get dependabot running again.

23 months agoShorten processed image filenames
Bjørn Erik Pedersen [Tue, 30 Jul 2024 14:47:16 +0000 (16:47 +0200)]
Shorten processed image filenames

Fixes #12688
Fixes #12656

23 months agoConsolidate all hashing to the common/hashing package
Bjørn Erik Pedersen [Tue, 30 Jul 2024 13:47:34 +0000 (15:47 +0200)]
Consolidate all hashing to the common/hashing package

And remove now unsued hashing funcs.

23 months agoReplace the MD5 hashing of images with xxHash
Bjørn Erik Pedersen [Tue, 30 Jul 2024 10:52:54 +0000 (12:52 +0200)]
Replace the MD5 hashing of images with xxHash

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)
```

23 months agoresources: Add BenchmarkHashImage
Bjørn Erik Pedersen [Tue, 30 Jul 2024 10:42:17 +0000 (12:42 +0200)]
resources: Add BenchmarkHashImage

23 months agodeps: Replace github.com/mitchellh/hashstructure/v2 with github.com/gohugoio/hashstru...
Bjørn Erik Pedersen [Tue, 30 Jul 2024 10:13:28 +0000 (12:13 +0200)]
deps: Replace github.com/mitchellh/hashstructure/v2 with github.com/gohugoio/hashstructure

The old repo is archived and no longer maintained.

See #11644

23 months agoidentity: Use xxHash in hashstructure (note)
Bjørn Erik Pedersen [Tue, 30 Jul 2024 08:26:10 +0000 (10:26 +0200)]
identity: Use xxHash in hashstructure (note)

```
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)
```

23 months agoidentity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2
Bjørn Erik Pedersen [Tue, 30 Jul 2024 08:08:19 +0000 (10:08 +0200)]
identity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2

```
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

23 months agoidentity: Add BenchmarkHashString
Bjørn Erik Pedersen [Tue, 30 Jul 2024 08:06:48 +0000 (10:06 +0200)]
identity: Add BenchmarkHashString

23 months agodeps: Upgrade github.com/bep/imagemeta v0.7.4 => v0.7.5
Bjørn Erik Pedersen [Wed, 31 Jul 2024 12:50:07 +0000 (14:50 +0200)]
deps: Upgrade github.com/bep/imagemeta v0.7.4 => v0.7.5

23 months agodeps: Upgrade github.com/aws/aws-sdk-go-v2 v1.26.1 => v1.30.3
Bjørn Erik Pedersen [Wed, 31 Jul 2024 11:47:18 +0000 (13:47 +0200)]
deps: Upgrade github.com/aws/aws-sdk-go-v2 v1.26.1 => v1.30.3

23 months agodeps: Upgrade to github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0
Bjørn Erik Pedersen [Wed, 31 Jul 2024 09:14:00 +0000 (11:14 +0200)]
deps: Upgrade to github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0

23 months agoreleaser: Prepare repository for 0.131.0-DEV
hugoreleaser [Mon, 29 Jul 2024 14:06:20 +0000 (14:06 +0000)]
releaser: Prepare repository for 0.131.0-DEV

[ci skip]

23 months agoreleaser: Bump versions for release of 0.130.0
hugoreleaser [Mon, 29 Jul 2024 13:51:56 +0000 (13:51 +0000)]
releaser: Bump versions for release of 0.130.0

[ci skip]

2 years agomath: Add trigonometric functions and some angle helper functions
raoulb [Mon, 29 Jul 2024 09:05:36 +0000 (11:05 +0200)]
math: Add trigonometric functions and some angle helper functions

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 <joe@mooring.com>
2 years agodeps: Upgrade github.com/bep/imagemeta v0.7.3 => v0.7.4
Bjørn Erik Pedersen [Tue, 23 Jul 2024 18:45:25 +0000 (20:45 +0200)]
deps: Upgrade github.com/bep/imagemeta v0.7.3 => v0.7.4

2 years agodeps: Upgrade github.com/bep/imagemeta v0.7.1 => v0.7.3
Bjørn Erik Pedersen [Sun, 21 Jul 2024 14:56:48 +0000 (16:56 +0200)]
deps: Upgrade github.com/bep/imagemeta v0.7.1 => v0.7.3