]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
14 months agoreleaser: Prepare repository for 0.148.0-DEV
hugoreleaser [Thu, 1 May 2025 14:04:58 +0000 (14:04 +0000)]
releaser: Prepare repository for 0.148.0-DEV

[ci skip]

14 months agoreleaser: Bump versions for release of 0.147.1
hugoreleaser [Thu, 1 May 2025 13:50:04 +0000 (13:50 +0000)]
releaser: Bump versions for release of 0.147.1

[ci skip]

14 months agobuild(deps): bump github.com/alecthomas/chroma/v2 from 2.17.0 to 2.17.2
dependabot[bot] [Thu, 1 May 2025 08:56:25 +0000 (08:56 +0000)]
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>
14 months agobuild(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0
dependabot[bot] [Thu, 1 May 2025 08:56:36 +0000 (08:56 +0000)]
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>
14 months agotpl: Add some more test cases
Bjørn Erik Pedersen [Thu, 1 May 2025 07:36:03 +0000 (09:36 +0200)]
tpl: Add some more test cases

See #13672
See #13668

14 months agobuild(deps): bump github.com/yuin/goldmark from 1.7.10 to 1.7.11
dependabot[bot] [Mon, 28 Apr 2025 08:25:13 +0000 (08:25 +0000)]
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>
14 months agotpl: Fix overlapping layout sections
Bjørn Erik Pedersen [Wed, 30 Apr 2025 17:49:42 +0000 (19:49 +0200)]
tpl: Fix overlapping layout sections

Fixes #13672

15 months agoFix it so the owning taxonomy gets rerendered in server when new tags are added
Bjørn Erik Pedersen [Sun, 27 Apr 2025 16:58:25 +0000 (18:58 +0200)]
Fix it so the owning taxonomy gets rerendered in server when new tags are added

Updates #13648

15 months agocommands/server: Display correct multihost language in console
Joe Mooring [Sun, 27 Apr 2025 12:50:51 +0000 (05:50 -0700)]
commands/server: Display correct multihost language in console

Fixes #12564

15 months agohugolib: Use new build key in content placeholder
Joe Mooring [Sat, 26 Apr 2025 14:04:50 +0000 (07:04 -0700)]
hugolib: Use new build key in content placeholder

Fixes #13655

15 months agoreleaser: Prepare repository for 0.148.0-DEV
hugoreleaser [Fri, 25 Apr 2025 15:41:01 +0000 (15:41 +0000)]
releaser: Prepare repository for 0.148.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.147.0
hugoreleaser [Fri, 25 Apr 2025 15:26:28 +0000 (15:26 +0000)]
releaser: Bump versions for release of 0.147.0

[ci skip]

15 months agotpl: Fix it so we always prefer internal codeblock rendering over render-codeblock...
Bjørn Erik Pedersen [Fri, 25 Apr 2025 06:31:26 +0000 (08:31 +0200)]
tpl: Fix it so we always prefer internal codeblock rendering over render-codeblock-foo.html and similar

Fixes #13651

15 months agotpl/tplimpl: Fix allowFullScreen option in Vimeo and YouTube shortcodes
Joe Mooring [Thu, 24 Apr 2025 21:14:46 +0000 (14:14 -0700)]
tpl/tplimpl: Fix allowFullScreen option in Vimeo and YouTube shortcodes

Closes #13650

15 months agocreate/skeletons: Adjust template names in theme skeleton
Joe Mooring [Thu, 24 Apr 2025 14:48:30 +0000 (07:48 -0700)]
create/skeletons: Adjust template names in theme skeleton

15 months agotpl: Remove some unreached code branches
Bjørn Erik Pedersen [Mon, 14 Apr 2025 12:47:05 +0000 (14:47 +0200)]
tpl: Remove some unreached code branches

15 months agoimages: Add some test cases for aligny on images.Text
Bjørn Erik Pedersen [Thu, 24 Apr 2025 08:29:31 +0000 (10:29 +0200)]
images: Add some test cases for aligny on images.Text

See #13414

15 months agoimages: Add option for vertical alignment to images.Text
Pranshu Gaba [Mon, 17 Feb 2025 23:51:42 +0000 (05:21 +0530)]
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

15 months agoconfig: Fix _merge issue when key doesn't exist on the left side
Bjørn Erik Pedersen [Wed, 23 Apr 2025 14:27:14 +0000 (16:27 +0200)]
config: Fix _merge issue when key doesn't exist on the left side

Fixes #13643
Fixes #13646

15 months agoMerge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'
Bjørn Erik Pedersen [Thu, 24 Apr 2025 08:23:16 +0000 (10:23 +0200)]
Merge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'

15 months agoSquashed 'docs/' changes from dc7a9ae12..b654fcba0
Bjørn Erik Pedersen [Thu, 24 Apr 2025 08:23:16 +0000 (10:23 +0200)]
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: b654fcba0d4385da1e47179ef3763f277f044242

15 months agoall: Fix typos
Christian Oliff [Thu, 24 Apr 2025 08:19:17 +0000 (17:19 +0900)]
all: Fix typos

15 months agobuild(deps): bump github.com/evanw/esbuild from 0.25.2 to 0.25.3
dependabot[bot] [Wed, 23 Apr 2025 08:12:38 +0000 (08:12 +0000)]
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>
15 months agobuild(deps): bump github.com/alecthomas/chroma/v2 from 2.16.0 to 2.17.0
dependabot[bot] [Wed, 23 Apr 2025 08:12:25 +0000 (08:12 +0000)]
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>
15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Tue, 22 Apr 2025 17:42:19 +0000 (17:42 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.7
hugoreleaser [Tue, 22 Apr 2025 17:26:42 +0000 (17:26 +0000)]
releaser: Bump versions for release of 0.146.7

[ci skip]

15 months agoRevert the breaking change from 0.146.0 with dots in content filenames
Bjørn Erik Pedersen [Mon, 21 Apr 2025 14:15:21 +0000 (16:15 +0200)]
Revert the breaking change from 0.146.0 with dots in content filenames

Closes #13632

15 months agotpl: Fix indeterminate template lookup with templates with and without lang
Bjørn Erik Pedersen [Mon, 21 Apr 2025 16:02:50 +0000 (18:02 +0200)]
tpl: Fix indeterminate template lookup with templates with and without lang

Close #13636

15 months agoparser/metadecoders: Add CSV targetType (map or slice) option to transform.Unmarshal
Joe Mooring [Mon, 21 Apr 2025 17:33:20 +0000 (10:33 -0700)]
parser/metadecoders: Add CSV targetType (map or slice) option to transform.Unmarshal

Closes #8859

15 months agobuild(deps): bump github.com/yuin/goldmark-emoji from 1.0.5 to 1.0.6
dependabot[bot] [Mon, 21 Apr 2025 09:58:00 +0000 (09:58 +0000)]
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>
15 months agobuild(deps): bump github.com/bep/imagemeta from 0.11.0 to 0.12.0
dependabot[bot] [Mon, 21 Apr 2025 09:29:46 +0000 (09:29 +0000)]
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>
15 months agotpl/collections: Fix where ... not in with empty slice
Bjørn Erik Pedersen [Mon, 21 Apr 2025 09:53:38 +0000 (11:53 +0200)]
tpl/collections: Fix where ... not in with empty slice

Fixes #13621

15 months agotpl: Fix layout fall back logic when layout is set in front matter but not found
Bjørn Erik Pedersen [Mon, 21 Apr 2025 09:28:33 +0000 (11:28 +0200)]
tpl: Fix layout fall back logic when layout is set in front matter but not found

Fixes #13630

15 months agotpl: Detect and fail on infinite template recursion
Bjørn Erik Pedersen [Sun, 20 Apr 2025 16:20:17 +0000 (18:20 +0200)]
tpl: Detect and fail on infinite template recursion

Fixes #13627

15 months agobuild(deps): bump github.com/yuin/goldmark from 1.7.9 to 1.7.10
dependabot[bot] [Wed, 16 Apr 2025 08:20:19 +0000 (08:20 +0000)]
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>
15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Sun, 20 Apr 2025 11:13:56 +0000 (11:13 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.6
hugoreleaser [Sun, 20 Apr 2025 10:58:40 +0000 (10:58 +0000)]
releaser: Bump versions for release of 0.146.6

[ci skip]

15 months agotpl: Fix when layout specified in front matter and no match is found
Bjørn Erik Pedersen [Sun, 20 Apr 2025 08:59:40 +0000 (10:59 +0200)]
tpl: Fix when layout specified in front matter and no match is found

Fixes #13628

15 months agoUpdate watchtestscripts.sh
broughtupsy [Mon, 15 Apr 2024 15:44:42 +0000 (18:44 +0300)]
Update watchtestscripts.sh

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Tue, 15 Apr 2025 18:09:42 +0000 (18:09 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.5
hugoreleaser [Tue, 15 Apr 2025 17:54:38 +0000 (17:54 +0000)]
releaser: Bump versions for release of 0.146.5

[ci skip]

15 months agobuild(deps): bump github.com/yuin/goldmark from 1.7.8 to 1.7.9
dependabot[bot] [Tue, 15 Apr 2025 08:23:28 +0000 (08:23 +0000)]
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>
15 months agotpl: Fix language handling in partials
Bjørn Erik Pedersen [Tue, 15 Apr 2025 07:05:24 +0000 (09:05 +0200)]
tpl: Fix language handling in partials

We now use the same code path for all templates re this.

Fixes #13612

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Mon, 14 Apr 2025 13:25:05 +0000 (13:25 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.4
hugoreleaser [Mon, 14 Apr 2025 13:10:30 +0000 (13:10 +0000)]
releaser: Bump versions for release of 0.146.4

[ci skip]

15 months agotpl: Fix issue with partials without suffix
Bjørn Erik Pedersen [Mon, 14 Apr 2025 10:00:14 +0000 (12:00 +0200)]
tpl: Fix issue with partials without suffix

Fixes #13601

15 months agotpl: Avoid panic on nonsensical return construct
Bjørn Erik Pedersen [Mon, 14 Apr 2025 09:55:57 +0000 (11:55 +0200)]
tpl: Avoid panic on nonsensical return construct

Fixes #13600

15 months agotpl: Fix the case for a shortcode in a nested folder only
Bjørn Erik Pedersen [Mon, 14 Apr 2025 09:41:56 +0000 (11:41 +0200)]
tpl: Fix the case for a shortcode in a nested folder only

Fixes #13605

15 months agotpl: Add proper file context to template parse errors
Bjørn Erik Pedersen [Mon, 14 Apr 2025 09:20:36 +0000 (11:20 +0200)]
tpl: Add proper file context to template parse errors

Fixes #13604

15 months agotpl: Make {{ template "partials/foo.html" . }} work in older setups
Bjørn Erik Pedersen [Mon, 14 Apr 2025 09:05:07 +0000 (11:05 +0200)]
tpl: Make {{ template "partials/foo.html" . }} work in older setups

Fixes #13599

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Sat, 12 Apr 2025 17:36:11 +0000 (17:36 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.3
hugoreleaser [Sat, 12 Apr 2025 17:21:50 +0000 (17:21 +0000)]
releaser: Bump versions for release of 0.146.3

[ci skip]

15 months agotpl: Make any layout set in front matter higher priority
Bjørn Erik Pedersen [Sat, 12 Apr 2025 10:37:39 +0000 (12:37 +0200)]
tpl: Make any layout set in front matter higher priority

Fixes #13541

15 months agotpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock...
Bjørn Erik Pedersen [Sat, 12 Apr 2025 10:02:33 +0000 (12:02 +0200)]
tpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock exists

Fixes #13595

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Fri, 11 Apr 2025 17:39:58 +0000 (17:39 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.2
hugoreleaser [Fri, 11 Apr 2025 17:25:13 +0000 (17:25 +0000)]
releaser: Bump versions for release of 0.146.2

[ci skip]

15 months agotpl: Fix codeblock hook resolve issue
Bjørn Erik Pedersen [Fri, 11 Apr 2025 16:37:25 +0000 (18:37 +0200)]
tpl: Fix codeblock hook resolve issue

Fixes #13593

15 months agotpl: Fix legacy section mappings
Bjørn Erik Pedersen [Fri, 11 Apr 2025 09:20:03 +0000 (11:20 +0200)]
tpl: Fix legacy section mappings

Fixes #13584

15 months agotpl: Resolve layouts/all.html for all html output formats
Bjørn Erik Pedersen [Fri, 11 Apr 2025 08:54:19 +0000 (10:54 +0200)]
tpl: Resolve layouts/all.html for all html output formats

Fixes #13587

15 months agotpl: Fix some baseof lookup issues
Bjørn Erik Pedersen [Fri, 11 Apr 2025 08:16:28 +0000 (10:16 +0200)]
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

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Thu, 10 Apr 2025 16:59:48 +0000 (16:59 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.1
hugoreleaser [Thu, 10 Apr 2025 16:44:46 +0000 (16:44 +0000)]
releaser: Bump versions for release of 0.146.1

[ci skip]

15 months agotpl: Skip dot and temp files inside /layouts
Bjørn Erik Pedersen [Thu, 10 Apr 2025 15:55:46 +0000 (17:55 +0200)]
tpl: Skip dot and temp files inside /layouts

Fixes #13579

15 months agoreleaser: Prepare repository for 0.147.0-DEV
hugoreleaser [Thu, 10 Apr 2025 15:13:26 +0000 (15:13 +0000)]
releaser: Prepare repository for 0.147.0-DEV

[ci skip]

15 months agoreleaser: Bump versions for release of 0.146.0
hugoreleaser [Thu, 10 Apr 2025 14:57:56 +0000 (14:57 +0000)]
releaser: Bump versions for release of 0.146.0

[ci skip]

15 months agotpl: Warn and skip non-hook templates inside /layouts/_markup
Bjørn Erik Pedersen [Thu, 10 Apr 2025 13:57:29 +0000 (15:57 +0200)]
tpl: Warn and skip non-hook templates inside /layouts/_markup

Fixes #13577

15 months agoMerge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
Bjørn Erik Pedersen [Thu, 10 Apr 2025 11:04:51 +0000 (13:04 +0200)]
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

15 months agoSquashed 'docs/' changes from d1a251933..dc7a9ae12
Bjørn Erik Pedersen [Thu, 10 Apr 2025 11:02:49 +0000 (13:02 +0200)]
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: dc7a9ae127717cde17840496cb0287f481c5f0ee

15 months agotpl: Add a partial lookup cache
Bjørn Erik Pedersen [Thu, 10 Apr 2025 07:22:29 +0000 (09:22 +0200)]
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

15 months agobuild(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0
dependabot[bot] [Thu, 10 Apr 2025 08:05:50 +0000 (08:05 +0000)]
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>
15 months agobuild(deps): bump golang.org/x/tools from 0.31.0 to 0.32.0
dependabot[bot] [Thu, 10 Apr 2025 08:05:57 +0000 (08:05 +0000)]
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>
15 months agobuild(deps): bump github.com/evanw/esbuild from 0.25.1 to 0.25.2
dependabot[bot] [Thu, 10 Apr 2025 08:06:05 +0000 (08:06 +0000)]
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>
15 months agotpl: Add templates.Current
Bjørn Erik Pedersen [Tue, 8 Apr 2025 16:41:06 +0000 (18:41 +0200)]
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

15 months agobuild(deps): bump golang.org/x/image from 0.25.0 to 0.26.0
dependabot[bot] [Tue, 8 Apr 2025 10:15:49 +0000 (10:15 +0000)]
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>
15 months agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4
dependabot[bot] [Wed, 9 Apr 2025 08:43:01 +0000 (08:43 +0000)]
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>
15 months agobuild(deps): bump github.com/alecthomas/chroma/v2 from 2.15.0 to 2.16.0
dependabot[bot] [Wed, 9 Apr 2025 08:44:22 +0000 (08:44 +0000)]
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>
15 months agocommands/new: Improve theme creation
Joe Mooring [Sun, 30 Mar 2025 19:31:12 +0000 (12:31 -0700)]
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

15 months agobuild(deps): bump golang.org/x/net from 0.37.0 to 0.39.0
dependabot[bot] [Tue, 8 Apr 2025 08:17:58 +0000 (08:17 +0000)]
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>
15 months agobuild(deps): bump github.com/bep/imagemeta from 0.10.0 to 0.11.0
dependabot[bot] [Tue, 8 Apr 2025 08:18:04 +0000 (08:18 +0000)]
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>
15 months agodeps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.3.0 =>...
Joe Mooring [Sun, 30 Mar 2025 18:17:19 +0000 (11:17 -0700)]
deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.3.0 => v0.3.1

15 months agotpl/tplimpl: Update embedded pagination template
Joe Mooring [Thu, 3 Apr 2025 17:16:04 +0000 (10:16 -0700)]
tpl/tplimpl: Update embedded pagination template

15 months agoReimplement and simplify Hugo's template system
Bjørn Erik Pedersen [Sun, 6 Apr 2025 17:55:35 +0000 (19:55 +0200)]
Reimplement and simplify Hugo's template system

See #13541 for details.

Fixes #13545
Fixes #13515
Closes #7964
Closes #13365
Closes #12988
Closes #4891

15 months agoconfig: Use the non-global logger for deprecations when possible
Bjørn Erik Pedersen [Thu, 3 Apr 2025 09:57:36 +0000 (11:57 +0200)]
config: Use the non-global logger for deprecations when possible

To prevent warnings leaking into parallel tests.

15 months agotpl/time: Add time.In function
Joe Mooring [Tue, 1 Apr 2025 18:37:22 +0000 (11:37 -0700)]
tpl/time: Add time.In function

Closes #13548

15 months agoresources: Add option to silence dependency deprecation warnings
Joe Mooring [Thu, 27 Mar 2025 22:52:46 +0000 (15:52 -0700)]
resources: Add option to silence dependency deprecation warnings

Closes #13530

16 months agotpl/tplimpl: Fix full screen option in vimeo and youtube shortcodes
Joe Mooring [Wed, 26 Mar 2025 23:01:01 +0000 (16:01 -0700)]
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>
16 months agocommon/hreflect: Replace the map/RWMutex method cache with sync.Map
Bjørn Erik Pedersen [Wed, 26 Mar 2025 10:11:06 +0000 (11:11 +0100)]
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)
```

16 months agobuild(deps): bump golang.org/x/tools from 0.30.0 to 0.31.0
dependabot[bot] [Mon, 24 Mar 2025 09:46:57 +0000 (09:46 +0000)]
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>
16 months agobuild(deps): bump github.com/getkin/kin-openapi from 0.129.0 to 0.131.0
dependabot[bot] [Tue, 25 Mar 2025 08:50:19 +0000 (08:50 +0000)]
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>
16 months agobuild(deps): bump github.com/spf13/afero from 1.11.0 to 1.14.0
dependabot[bot] [Tue, 25 Mar 2025 08:50:23 +0000 (08:50 +0000)]
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>
16 months agobuild(deps): bump github.com/bep/imagemeta from 0.9.0 to 0.10.0
dependabot[bot] [Mon, 24 Mar 2025 08:24:06 +0000 (08:24 +0000)]
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>
16 months agobuild(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2
dependabot[bot] [Fri, 21 Mar 2025 22:17:09 +0000 (22:17 +0000)]
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>
16 months agobuild(deps): bump github.com/evanw/esbuild from 0.24.2 to 0.25.1
dependabot[bot] [Sun, 23 Mar 2025 12:56:59 +0000 (12:56 +0000)]
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>
16 months agobuild(deps): bump github.com/bep/godartsass/v2 from 2.4.0 to 2.4.1
dependabot[bot] [Mon, 24 Mar 2025 08:24:11 +0000 (08:24 +0000)]
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>
16 months agobuild(deps): bump golang.org/x/net from 0.35.0 to 0.37.0
dependabot[bot] [Thu, 13 Mar 2025 15:19:20 +0000 (15:19 +0000)]
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>
16 months agocommon/hexec: Remove github.com/cli/safeexec
Joe Mooring [Sat, 22 Mar 2025 19:26:41 +0000 (12:26 -0700)]
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

16 months agoparser/metadecoder: Improve errors for non-map XML root values
Ville Vesilehto [Sat, 22 Mar 2025 17:48:23 +0000 (19:48 +0200)]
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"

16 months agoidentity: Use clear to clear the finder seen map
Bjørn Erik Pedersen [Sat, 15 Mar 2025 17:26:11 +0000 (18:26 +0100)]
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)
```

16 months agobuild(deps): bump github.com/bep/godartsass/v2 from 2.3.2 to 2.4.0
dependabot[bot] [Tue, 11 Mar 2025 20:05:20 +0000 (20:05 +0000)]
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>
16 months agocommands/gen: Set url in command pages to /docs/reference/commands/
Joe Mooring [Thu, 13 Mar 2025 00:43:24 +0000 (17:43 -0700)]
commands/gen: Set url in command pages to /docs/reference/commands/