]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
18 months agotpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode
Joe Mooring [Sun, 5 Jan 2025 13:31:58 +0000 (05:31 -0800)]
tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode

Closes #13214

18 months agocommands: Fix spelling in comment
Bjørn Erik Pedersen [Wed, 15 Jan 2025 21:31:52 +0000 (22:31 +0100)]
commands: Fix spelling in comment

18 months agocommands: Set up the glboal logger early
Bjørn Erik Pedersen [Wed, 15 Jan 2025 21:24:10 +0000 (22:24 +0100)]
commands: Set up the glboal logger early

Fixes #13265

18 months agocommands: Add --printZero to the config command
Bjørn Erik Pedersen [Wed, 15 Jan 2025 20:00:15 +0000 (21:00 +0100)]
commands: Add --printZero to the config command

Will include zero config values (e.g. "", 0, false) in the output and will be more verbose, but useful if you cant to discover all available config options.

18 months agoFor render hooks, only fallback to HTML (or the defaultOutputFormat) template
Bjørn Erik Pedersen [Wed, 15 Jan 2025 14:45:13 +0000 (15:45 +0100)]
For render hooks, only fallback to HTML (or the defaultOutputFormat) template

Closes #13242

18 months agotpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge
Bjørn Erik Pedersen [Sun, 12 Jan 2025 15:58:11 +0000 (17:58 +0200)]
tpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge

Some relevant benchmarks:

Where with maps:

```
cpu: Apple M1 Pro
            │ master.bench │         fix-mapkeys.bench          │
            │    sec/op    │   sec/op     vs base               │
WhereMap-10    79.26µ ± 1%   26.58µ ± 1%  -66.46% (p=0.002 n=6)

            │ master.bench │         fix-mapkeys.bench         │
            │     B/op     │    B/op     vs base               │
WhereMap-10   56685.0 ± 0%   111.0 ± 1%  -99.80% (p=0.002 n=6)

            │ master.bench  │         fix-mapkeys.bench         │
            │   allocs/op   │ allocs/op   vs base               │
WhereMap-10   2003.000 ± 0%   4.000 ± 0%  -99.80% (p=0.002 n=6)
```

Merge:

```
         │ master.bench │         fix-mapkeys.bench          │
         │    sec/op    │   sec/op     vs base               │
Merge-10    3.285µ ± 0%   2.268µ ± 1%  -30.96% (p=0.002 n=6)

         │ master.bench │          fix-mapkeys.bench          │
         │     B/op     │     B/op      vs base               │
Merge-10   3.079Ki ± 0%   1.891Ki ± 0%  -38.58% (p=0.002 n=6)

         │ master.bench │         fix-mapkeys.bench         │
         │  allocs/op   │ allocs/op   vs base               │
Merge-10     64.00 ± 0%   26.00 ± 0%  -59.38% (p=0.002 n=6)
```
Sort:

```
cpu: Apple M1 Pro
           │ master.bench │         fix-mapkeys.bench         │
           │    sec/op    │   sec/op     vs base              │
SortMap-10   1008.0n ± 1%   915.5n ± 0%  -9.18% (p=0.002 n=6)

           │ master.bench │         fix-mapkeys.bench         │
           │     B/op     │    B/op     vs base               │
SortMap-10     640.0 ± 0%   512.0 ± 0%  -20.00% (p=0.002 n=6)

           │ master.bench │        fix-mapkeys.bench         │
           │  allocs/op   │ allocs/op   vs base              │
SortMap-10     16.00 ± 0%   15.00 ± 0%  -6.25% (p=0.002 n=6)
```

18 months agodeps: Upgrade github.com/gohugoio/hashstructure from 0.1.0 to 0.3.0
Bjørn Erik Pedersen [Mon, 13 Jan 2025 13:17:15 +0000 (15:17 +0200)]
deps: Upgrade github.com/gohugoio/hashstructure from 0.1.0 to 0.3.0

Faster hashing of maps:

```
           │ stash.bench  │      deps-hashstructv030.bench      │
           │    sec/op    │    sec/op     vs base               │
HashMap-10   198.9µ ± ∞ ¹   142.6µ ± ∞ ¹  -28.31% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

           │  stash.bench  │      deps-hashstructv030.bench       │
           │     B/op      │     B/op       vs base               │
HashMap-10   92.38Ki ± ∞ ¹   37.14Ki ± ∞ ¹  -59.80% (p=0.029 n=4)
¹ need >= 6 samples for confidence interval at level 0.95

           │ stash.bench  │      deps-hashstructv030.bench      │
           │  allocs/op   │  allocs/op    vs base               │
HashMap-10   6.747k ± ∞ ¹   4.748k ± ∞ ¹  -29.63% (p=0.029 n=4)
```

18 months agotpl/collections: Add BenchmarkWhereMap
Bjørn Erik Pedersen [Mon, 13 Jan 2025 10:57:48 +0000 (12:57 +0200)]
tpl/collections: Add BenchmarkWhereMap

18 months agotpl/collections: Add BenchmarkSortMap
Bjørn Erik Pedersen [Mon, 13 Jan 2025 08:38:12 +0000 (10:38 +0200)]
tpl/collections: Add BenchmarkSortMap

18 months agotpl/collections: Add Merge benchmark
Bjørn Erik Pedersen [Mon, 13 Jan 2025 08:32:41 +0000 (10:32 +0200)]
tpl/collections: Add Merge benchmark

18 months agoresources/images: Refactor golden image tests to locate them closer to the implementation
Bjørn Erik Pedersen [Sat, 11 Jan 2025 12:10:30 +0000 (14:10 +0200)]
resources/images: Refactor golden image tests to locate them closer to the implementation

18 months agoresources/images: Add some mask tests
Bjørn Erik Pedersen [Fri, 10 Jan 2025 07:54:30 +0000 (09:54 +0200)]
resources/images: Add some mask tests

Closes #13244

18 months agoresources/images: Add images.Mask
Markus Kienast [Fri, 10 Jan 2025 07:43:51 +0000 (09:43 +0200)]
resources/images: Add images.Mask

See #13244

18 months agotpl/tplimpl: Use plain text for image render hook alt attribute
Joe Mooring [Fri, 10 Jan 2025 07:36:10 +0000 (23:36 -0800)]
tpl/tplimpl: Use plain text for image render hook alt attribute

Co-authored-by: Heracles <email@heracl.es>
18 months agoAdjust error handling in ToMath vs try (note)
Bjørn Erik Pedersen [Thu, 9 Jan 2025 07:17:40 +0000 (08:17 +0100)]
Adjust error handling in ToMath vs try  (note)

Closes #13239

18 months agoresources/images: Add some golden tests for images.QR
Bjørn Erik Pedersen [Wed, 8 Jan 2025 21:03:41 +0000 (22:03 +0100)]
resources/images: Add some golden tests for images.QR

18 months agoFix branch resource overlapping bundle path
Bjørn Erik Pedersen [Thu, 9 Jan 2025 05:01:58 +0000 (06:01 +0100)]
Fix branch resource overlapping bundle path

Fixes #13228

18 months agotemplates: Fix handling of multiple defers in the same template
Bjørn Erik Pedersen [Thu, 9 Jan 2025 03:09:25 +0000 (04:09 +0100)]
templates: Fix handling of multiple defers in the same template

Fixes #13236

18 months agotpl/images: Change signature of images.QR to images.QR TEXT OPTIONS
Joe Mooring [Wed, 8 Jan 2025 18:10:18 +0000 (10:10 -0800)]
tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS

Closes #13230

18 months agoresources/images: Add some golden tests for images.Text
Bjørn Erik Pedersen [Wed, 8 Jan 2025 16:37:21 +0000 (17:37 +0100)]
resources/images: Add some golden tests for images.Text

18 months agoimages.Text: Add "alignx" option for horizontal alignment
Julius Künzel [Mon, 6 Jan 2025 19:31:18 +0000 (20:31 +0100)]
images.Text: Add "alignx" option for horizontal alignment

Add an "alignx" option to the images.Text to control whether the value of the "x" option is the left border of the text (current behaviour), the center of each line or the right border.

Fixes #10849

18 months agoimages: Rework the golden tests
Bjørn Erik Pedersen [Tue, 7 Jan 2025 16:42:04 +0000 (17:42 +0100)]
images: Rework the golden tests

18 months agoFix NPX issue with TailwindCSS v4
Bjørn Erik Pedersen [Tue, 7 Jan 2025 08:13:16 +0000 (09:13 +0100)]
Fix NPX issue with TailwindCSS v4

This allows the `tailwindcss` CLI binary to live in the `PATH` for NPM-less projects.

Fixes #13221

18 months agobuild(deps): bump golang.org/x/tools from 0.28.0 to 0.29.0
dependabot[bot] [Tue, 7 Jan 2025 08:27:07 +0000 (08:27 +0000)]
build(deps): bump golang.org/x/tools from 0.28.0 to 0.29.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.28.0...v0.29.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>
18 months agobuild(deps): bump golang.org/x/net from 0.33.0 to 0.34.0
dependabot[bot] [Tue, 7 Jan 2025 08:27:10 +0000 (08:27 +0000)]
build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.34.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>
18 months agosnap: Always package latest stable version of Go
Joe Mooring [Mon, 6 Jan 2025 20:50:40 +0000 (12:50 -0800)]
snap: Always package latest stable version of Go

18 months agodocs: Regen CLI docs
Bjørn Erik Pedersen [Mon, 6 Jan 2025 17:12:20 +0000 (18:12 +0100)]
docs: Regen CLI docs

18 months agoMerge commit 'e9fbadacc3f09191e2e19f112a49777eeb8df06c'
Bjørn Erik Pedersen [Mon, 6 Jan 2025 17:11:07 +0000 (18:11 +0100)]
Merge commit 'e9fbadacc3f09191e2e19f112a49777eeb8df06c'

18 months agoSquashed 'docs/' changes from 8390a4a3a..f0f4bcb24
Bjørn Erik Pedersen [Mon, 6 Jan 2025 17:09:20 +0000 (18:09 +0100)]
Squashed 'docs/' changes from 8390a4a3a..f0f4bcb24

f0f4bcb24 Update Batch.md
15a8b1de6 Update Batch.md
eb841ce66 Update theme
751097f24 Use CI_PAGES_URL in GitLab Pages workflow
8584a0581 Fix typos
b030a7149 Update configuration.md
f7ec2ee9c Revert "Update shortcode.md"
f8188f1c8 Update shortcode.md
083fc39c6 Update shortcode.md
d4bdfb96b Update Filter.md
ef00649db Document wrapperClass highlighting option
e227dc422 Hugo 0.140.2
b95d28444 Fix description of the the hugo server command
41ca381b0 Fix documentation of Fragments
73a6cd966 Update theme
2573fd120 netlify: Hugo 0.140.1
90b19ec0d Merge branch 'tempv0.140.1'
ad2e9aeec Update gocloud and docs for S3-Compatible Endpoints
34b30bad2 Remove indentation from include shortcode examples
97b4ef544 Update related.md
7234e0189 Update related.md
32cc191f6 Clarify Name and Title menu entry methods
bce733c63 Update theme
2f1843d10 Use .Page.GetPage in examples of an include shortcode
9e1c85bbd Revert "Document PAGE.String"
bb30e7c08 Document PAGE.String
2d151d77f Fix link
fbe2d442f Miscellaneous updates for v0.140.0
4d3195223 Update JS docs vs Hugo v0.140
8c190aabc netlify: Hugo 0.140.0
826005ffe Merge branch 'tempv0.140.0'
107289a2c Update theme (again)
9884425f9 Update theme
ff0a358d3 Update Go tool version in hugo.work
c9b23cf6d tpl/tplimpl: Update details shortcode
f29f19aff tpl/tplimpl: Add details shortcode

git-subtree-dir: docs
git-subtree-split: f0f4bcb243776d0552396d12758bd38cda779b62

18 months agocreate: Respect --noBuildLock in hugo new
Bjørn Erik Pedersen [Mon, 6 Jan 2025 15:59:22 +0000 (16:59 +0100)]
create: Respect --noBuildLock in hugo new

18 months agobuild(deps): bump github.com/evanw/esbuild from 0.24.0 to 0.24.2
dependabot[bot] [Mon, 23 Dec 2024 08:48:21 +0000 (08:48 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.24.0 to 0.24.2

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.24.0 to 0.24.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.24.0...v0.24.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
18 months ago tpl/images: Format the QR hashes as hex
Bjørn Erik Pedersen [Mon, 6 Jan 2025 11:15:52 +0000 (12:15 +0100)]
 tpl/images: Format the QR hashes as hex

Slightly shorter, and it looks more like a ... hash.

18 months agobuild(deps): bump github.com/alecthomas/chroma/v2 from 2.14.0 to 2.15.0
dependabot[bot] [Mon, 6 Jan 2025 08:05:20 +0000 (08:05 +0000)]
build(deps): bump github.com/alecthomas/chroma/v2 from 2.14.0 to 2.15.0

Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) from 2.14.0 to 2.15.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.14.0...v2.15.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agoresources: Replace error handling in GetRemote with try (note)
Bjørn Erik Pedersen [Sun, 5 Jan 2025 14:43:18 +0000 (15:43 +0100)]
resources: Replace error handling in GetRemote with try (note)

Closes #13216

18 months agotpl/images: Add images.QR function
Joe Mooring [Tue, 31 Dec 2024 22:43:35 +0000 (17:43 -0500)]
tpl/images: Add images.QR function

Closes #13205

18 months agoAdd try
Bjørn Erik Pedersen [Tue, 19 Apr 2022 14:56:49 +0000 (16:56 +0200)]
Add try

Updates #9737

18 months agoresources: Add FromOpts for more effective resource creation
Bjørn Erik Pedersen [Fri, 3 Jan 2025 17:36:44 +0000 (18:36 +0100)]
resources: Add FromOpts for more effective resource creation

E.g. when the targetPath already contains a hash or if the resource content is expensive to create.

18 months agoFix server refresh on 404 template changes
Bjørn Erik Pedersen [Wed, 1 Jan 2025 12:48:18 +0000 (13:48 +0100)]
Fix server refresh on 404 template changes

Fixes #13209

18 months agomarkup/highlight: Remove noHl option
Joe Mooring [Tue, 31 Dec 2024 13:35:22 +0000 (08:35 -0500)]
markup/highlight: Remove noHl option

Closes #9885

18 months agoreleaser: Prepare repository for 0.141.0-DEV
hugoreleaser [Mon, 30 Dec 2024 15:16:00 +0000 (15:16 +0000)]
releaser: Prepare repository for 0.141.0-DEV

[ci skip]

18 months agoreleaser: Bump versions for release of 0.140.2
hugoreleaser [Mon, 30 Dec 2024 15:01:53 +0000 (15:01 +0000)]
releaser: Bump versions for release of 0.140.2

[ci skip]

18 months agoPrint cli usage of `hugo gen chromastyles` alongside css
Diwas Rimal [Sat, 28 Dec 2024 17:09:04 +0000 (22:54 +0545)]
Print cli usage of `hugo gen chromastyles` alongside css

18 months agobuild(deps): bump golang.org/x/net from 0.32.0 to 0.33.0
dependabot[bot] [Thu, 19 Dec 2024 08:33:49 +0000 (08:33 +0000)]
build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.32.0...v0.33.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>
18 months agoconfig/allconfig: Fix slice of language configs
Joe Mooring [Sun, 29 Dec 2024 21:44:13 +0000 (16:44 -0500)]
config/allconfig: Fix slice of language configs

Fixes #13201

18 months agoconfig/allconfig: Throw error when output format is not defined
Joe Mooring [Sun, 29 Dec 2024 19:30:58 +0000 (14:30 -0500)]
config/allconfig: Throw error when output format is not defined

Fixes #13199

19 months agoFix same resource file published more than once
Bjørn Erik Pedersen [Thu, 26 Dec 2024 12:47:10 +0000 (13:47 +0100)]
Fix same resource file published more than once

This may still happen, though, in low memory situations or very big sites, but I'm not sure it's worth spending time on fixing that. Writing the same file more than once isn't harmful, the negative effect is the false path warning.
 We may find a way to detect that situation if this becomes a real problem.

Fixes #13164

19 months agomarkup/highlight: Add wrapperClass option
Bjørn Erik Pedersen [Wed, 25 Dec 2024 17:20:16 +0000 (18:20 +0100)]
markup/highlight: Add wrapperClass option

The need comes from Tailwind's typography plugin. There's currently no way to turn that off outside of the markup, see https://github.com/tailwindlabs/tailwindcss-typography/pull/363

19 months agoUpdate README.md
Bjørn Erik Pedersen [Mon, 23 Dec 2024 17:57:19 +0000 (18:57 +0100)]
Update README.md

19 months agoreleaser: Prepare repository for 0.141.0-DEV
hugoreleaser [Mon, 23 Dec 2024 16:40:37 +0000 (16:40 +0000)]
releaser: Prepare repository for 0.141.0-DEV

[ci skip]

19 months agoreleaser: Bump versions for release of 0.140.1
hugoreleaser [Mon, 23 Dec 2024 16:26:35 +0000 (16:26 +0000)]
releaser: Bump versions for release of 0.140.1

[ci skip]

19 months agoUpdate gocloud and docs for S3-Compatible Endpoints
Chris Moultrie [Tue, 17 Dec 2024 17:12:29 +0000 (12:12 -0500)]
Update gocloud and docs for S3-Compatible Endpoints

19 months agojs/esbuild: Don't try to resolve packages in /assets marked as external
Bjørn Erik Pedersen [Sun, 22 Dec 2024 19:46:19 +0000 (20:46 +0100)]
js/esbuild: Don't try to resolve packages in /assets marked as external

Fixes #13183

19 months agoFix union, complement, symdiff, and intersect for transient resources
Bjørn Erik Pedersen [Sun, 22 Dec 2024 16:59:03 +0000 (17:59 +0100)]
Fix union, complement, symdiff, and intersect for transient resources

Fixes #13181

19 months agorelease: Add withdeploy deb extended archives
Bjørn Erik Pedersen [Sun, 22 Dec 2024 15:55:52 +0000 (16:55 +0100)]
release: Add withdeploy deb extended archives

Also refactor and get the config up to date for new version of Hugoreleaser.

Closes #13166

19 months agocommon/loggers: Write PrintTimerIfDelayed output to stdErr
Joe Mooring [Thu, 19 Dec 2024 16:44:11 +0000 (08:44 -0800)]
common/loggers: Write PrintTimerIfDelayed output to stdErr

Closes #13171

19 months agobuild(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1
dependabot[bot] [Thu, 19 Dec 2024 08:33:53 +0000 (08:33 +0000)]
build(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1

Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.7.0...v1.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
19 months agohugolib: Fix fallbacks for menu entry Name and Title
Joe Mooring [Wed, 18 Dec 2024 19:41:47 +0000 (11:41 -0800)]
hugolib: Fix fallbacks for menu entry Name and Title

Closes #13161

19 months agoreleaser: Prepare repository for 0.141.0-DEV
hugoreleaser [Tue, 17 Dec 2024 14:37:51 +0000 (14:37 +0000)]
releaser: Prepare repository for 0.141.0-DEV

[ci skip]

19 months agoreleaser: Bump versions for release of 0.140.0
hugoreleaser [Tue, 17 Dec 2024 14:20:55 +0000 (14:20 +0000)]
releaser: Bump versions for release of 0.140.0

[ci skip]

19 months agojs/esbuild: Add missing es2024 target
Bjørn Erik Pedersen [Tue, 17 Dec 2024 13:35:13 +0000 (14:35 +0100)]
js/esbuild: Add missing es2024 target

19 months agoFix panic on server rebuilds when using both base templates and template.Defer
Bjørn Erik Pedersen [Fri, 13 Dec 2024 12:57:23 +0000 (13:57 +0100)]
Fix panic on server rebuilds when using both base templates and template.Defer

Fixes #12963

19 months agojs: Fix js.Batch for multihost setups
Bjørn Erik Pedersen [Mon, 16 Dec 2024 07:34:17 +0000 (08:34 +0100)]
js: Fix js.Batch for multihost setups

Note that this is an unreleased feature.

Fixes #13151

19 months agoparser/pageparser: Fix Org Mode summary delimiter assignment
Joe Mooring [Mon, 16 Dec 2024 01:21:05 +0000 (17:21 -0800)]
parser/pageparser: Fix Org Mode summary delimiter assignment

Closes #13152

19 months agoFix a rebuild on resource rename case
Bjørn Erik Pedersen [Sun, 15 Dec 2024 09:52:53 +0000 (10:52 +0100)]
Fix a rebuild on resource rename case

19 months agojs/esbuild: Add runners after scripts
Bjørn Erik Pedersen [Sat, 14 Dec 2024 10:56:00 +0000 (11:56 +0100)]
js/esbuild: Add runners after scripts

19 months agojs/esbuild: Batch: Avoid nil Instances slice
Bjørn Erik Pedersen [Fri, 13 Dec 2024 17:04:44 +0000 (18:04 +0100)]
js/esbuild: Batch: Avoid nil Instances slice

Ranging over a nil slice in Go works great, but is a hassle onced passed to JS.

19 months agotpl/tplimpl: Fix title attribute in details shortcode
Joe Mooring [Fri, 13 Dec 2024 18:50:17 +0000 (10:50 -0800)]
tpl/tplimpl: Fix title attribute in details shortcode

19 months agotpl/tplimpl: Update youtube shortcode
Joe Mooring [Fri, 13 Dec 2024 12:08:25 +0000 (04:08 -0800)]
tpl/tplimpl: Update youtube shortcode

Pass a map instead of a slice to the collections.Querify function.

19 months agotpl/tplimpl: Update details shortcode
Joe Mooring [Fri, 13 Dec 2024 11:25:10 +0000 (03:25 -0800)]
tpl/tplimpl: Update details shortcode

- Remove localization of default summary value
- Add title attribute
- Reformat to be consistent with other embedded templates
- Simplify and improve integration test
- Update documentation

19 months agotpl/collections: Allow querify to accept a map argument
Joe Mooring [Wed, 11 Dec 2024 21:10:15 +0000 (13:10 -0800)]
tpl/collections: Allow querify to accept a map argument

Closes #13131

19 months agojs/esbuild: Build groups in order of their ID
Bjørn Erik Pedersen [Fri, 13 Dec 2024 10:00:04 +0000 (11:00 +0100)]
js/esbuild: Build groups in order of their ID

We already do this for scripts e.g. inside a group.

This makes sure that group A's entry points gets added before B's, which can be an important property, see https://github.com/evanw/esbuild/issues/399#issuecomment-1458680887

19 months agotpl/tplimpl: Add details shortcode
racehd [Sun, 1 Dec 2024 15:30:34 +0000 (10:30 -0500)]
tpl/tplimpl: Add details shortcode

- Add new shortcode to render details HTML element.
- Implement integration tests to check: default state, custom summary, open state,  attribute sanitization, allowed attributes, and localization of default summary text.
- Update docs to include details shortcode.

Closes # 13090

19 months agoWrite all logging (INFO, WARN, ERROR) to stderr
Bjørn Erik Pedersen [Fri, 13 Dec 2024 08:23:09 +0000 (09:23 +0100)]
Write all logging (INFO, WARN, ERROR) to stderr

The old setup tried to log >= warning to stderr, the rest to stdout.

However, that logic was flawed, so warnings ended up in stdout, which makes `hugo list all` etc. hard to reason about from scripts.

This commit fixes this by making all logging (info, warn, error) log to stderr and let stdout be reserved for program output.

Fixes #13074

19 months agojs/esbuild: Add platform option
Bjørn Erik Pedersen [Thu, 12 Dec 2024 21:09:59 +0000 (22:09 +0100)]
js/esbuild: Add platform option

Closes #13136

19 months agoAdd config option disableDefaultLanguageRedirect
Bjørn Erik Pedersen [Thu, 12 Dec 2024 14:42:17 +0000 (15:42 +0100)]
Add config option disableDefaultLanguageRedirect

Fixes #13133

19 months agoAdd js.Batch
Bjørn Erik Pedersen [Tue, 10 Dec 2024 15:22:08 +0000 (16:22 +0100)]
Add js.Batch

Fixes #12626
Closes #7499
Closes #9978
Closes #12879
Closes #13113
Fixes #13116

19 months agobuild(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0
dependabot[bot] [Thu, 12 Dec 2024 08:27:00 +0000 (08:27 +0000)]
build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
19 months agoUpgrade to Go 1.23.4
Bjørn Erik Pedersen [Thu, 12 Dec 2024 09:38:55 +0000 (10:38 +0100)]
Upgrade to Go 1.23.4

Closes #13130

19 months agobuild(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0
dependabot[bot] [Tue, 10 Dec 2024 08:51:24 +0000 (08:51 +0000)]
build(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.27.0...v0.28.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>
19 months agoRemove some old and unused shell scripts
Bjørn Erik Pedersen [Wed, 11 Dec 2024 12:14:49 +0000 (13:14 +0100)]
Remove some old and unused shell scripts

19 months agobuild(deps): bump github.com/hairyhenderson/go-codeowners
dependabot[bot] [Wed, 11 Dec 2024 08:26:45 +0000 (08:26 +0000)]
build(deps): bump github.com/hairyhenderson/go-codeowners

Bumps [github.com/hairyhenderson/go-codeowners](https://github.com/hairyhenderson/go-codeowners) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/hairyhenderson/go-codeowners/releases)
- [Changelog](https://github.com/hairyhenderson/go-codeowners/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hairyhenderson/go-codeowners/compare/v0.6.1...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/hairyhenderson/go-codeowners
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
19 months agoSquashed 'docs/' changes from 227aab619..8390a4a3a
Bjørn Erik Pedersen [Wed, 11 Dec 2024 08:53:33 +0000 (09:53 +0100)]
Squashed 'docs/' changes from 227aab619..8390a4a3a

8390a4a3a Add Void Linux installation instructions
d6099aae8 Update link to PostCSS plugins
25dad4693 netlify: Hugo 0.139.4
2b1fa118c Fix typo
3ef1eb505 Update hosting-on-aws-amplify
c0f6d35d6 Fix typo
aa54d4301 Correct directory name
98aa26bdb Improve instructions for hosting with AWS Amplify
a07638a80 Add new-in badges
6ad018055 netlify: Hugo 0.139.3
1050835d6 Update title of hugo.Store page
ebbd2e851 Clarify the shortcode Ordinal method
b7716ed95 Revise code block render hook for Mermaid diagrams
f1da9b6ea netlify: Hugo 0.139.2
d8ac9f428 Downgrade the Go toolchain in go.mod to a slightly older Go version
254b3c4f2 netlify: Hugo 0.139.1
03e666038 Add hugo.Store, site.Store and Shortcode.Store
157e8983b Update Anchorize.md
59fa9f214 Document the PageRef menu entry method
bda544cce docs(transform.Unmarshal): match lang attribute to title language in examples
1985886bd Adjust front matter of shared Markdown snippets
da5bd70d1 Fix typo
431b65d6b Update theme
b63ef69f5 Update style guidance
d50ed3422 Remove old new-in badges
12bfb9933 Update docs.yaml
0b936cacd netlify: Hugo 0.139.0
ab7668b4d dartsass: Add silenceDeprecations option
154df9bfc Merge commit '838bd312b1a287bb33962ad478dbc54737654f35'
efa80477c docs: Regen CLI docs
ad99e4a7a docs: Regenerate CLI docs

git-subtree-dir: docs
git-subtree-split: 8390a4a3ac36094f4cf47170af23b636608c420e

19 months agoMerge commit 'e477373487abcccdbed95688e37aa74b9b8fc198'
Bjørn Erik Pedersen [Wed, 11 Dec 2024 08:53:33 +0000 (09:53 +0100)]
Merge commit 'e477373487abcccdbed95688e37aa74b9b8fc198'

19 months agoFix Sass imports on the form index.{scss,sass}
Bjørn Erik Pedersen [Tue, 10 Dec 2024 12:33:27 +0000 (13:33 +0100)]
Fix Sass imports on the form index.{scss,sass}

Fixes #13123

19 months agobuild(deps): bump golang.org/x/net from 0.31.0 to 0.32.0
dependabot[bot] [Thu, 5 Dec 2024 08:15:38 +0000 (08:15 +0000)]
build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/net/compare/v0.31.0...v0.32.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>
19 months agomarkup/goldmark: Fix blockquote render hook text parsing
Joe Mooring [Mon, 9 Dec 2024 18:58:52 +0000 (10:58 -0800)]
markup/goldmark: Fix blockquote render hook text parsing

Fixes #12913
Fixes #13119

19 months agoreleaser: Bump versions for release of 0.139.4
hugoreleaser [Mon, 9 Dec 2024 17:45:23 +0000 (17:45 +0000)]
releaser: Bump versions for release of 0.139.4

[ci skip]

19 months agotpl/tplimpl: Escape Markdown attributes in render hooks and shortcodes
Joe Mooring [Wed, 4 Dec 2024 22:01:31 +0000 (14:01 -0800)]
tpl/tplimpl: Escape Markdown attributes in render hooks and shortcodes

19 months agodeps: Upgrade github.com/bep/godartsass/v2 v2.3.1 => v2.3.2
Bjørn Erik Pedersen [Fri, 6 Dec 2024 09:18:49 +0000 (10:18 +0100)]
deps: Upgrade github.com/bep/godartsass/v2 v2.3.1 => v2.3.2

See https://github.com/bep/godartsass/issues/31 for some context.

19 months agocommon/maps: Simplify TestScratchSetInMap/DeleteInMap
Oleksandr Redko [Thu, 5 Dec 2024 10:25:13 +0000 (12:25 +0200)]
common/maps: Simplify TestScratchSetInMap/DeleteInMap

19 months agomarkup/tableofcontents: Cast Fragments.ToHTML args to int
Joe Mooring [Wed, 4 Dec 2024 17:21:21 +0000 (09:21 -0800)]
markup/tableofcontents: Cast Fragments.ToHTML args to int

Closes #13107

19 months agoreleaser: Prepare repository for 0.140.0-DEV
hugoreleaser [Fri, 29 Nov 2024 15:51:07 +0000 (15:51 +0000)]
releaser: Prepare repository for 0.140.0-DEV

[ci skip]

19 months agoreleaser: Bump versions for release of 0.139.3
hugoreleaser [Fri, 29 Nov 2024 15:36:56 +0000 (15:36 +0000)]
releaser: Bump versions for release of 0.139.3

[ci skip]

19 months agoFix server edits of resources included in shortcode/hooks
Bjørn Erik Pedersen [Fri, 29 Nov 2024 11:13:49 +0000 (12:13 +0100)]
Fix server edits of resources included in shortcode/hooks

Fixes #13093

19 months agoFix some typos
huajin tong [Thu, 28 Nov 2024 10:20:02 +0000 (18:20 +0800)]
Fix some typos

19 months agobuild(deps): bump github.com/bep/godartsass/v2 from 2.3.0 to 2.3.1
dependabot[bot] [Thu, 28 Nov 2024 08:22:59 +0000 (08:22 +0000)]
build(deps): bump github.com/bep/godartsass/v2 from 2.3.0 to 2.3.1

Bumps [github.com/bep/godartsass/v2](https://github.com/bep/godartsass) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/bep/godartsass/releases)
- [Commits](https://github.com/bep/godartsass/compare/v2.3.0...v2.3.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>
20 months agobuild(deps): bump github.com/tetratelabs/wazero from 1.8.1 to 1.8.2
dependabot[bot] [Tue, 26 Nov 2024 08:30:24 +0000 (08:30 +0000)]
build(deps): bump github.com/tetratelabs/wazero from 1.8.1 to 1.8.2

Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/tetratelabs/wazero/releases)
- [Commits](https://github.com/tetratelabs/wazero/compare/v1.8.1...v1.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
20 months agocommands: Fix flaw in the livereload logic
Bjørn Erik Pedersen [Mon, 25 Nov 2024 09:39:17 +0000 (10:39 +0100)]
commands: Fix flaw in the livereload logic

I guess most commonly an issue with TailwindCSS editing in templates:

* Build changes both CSS and index.html => reload OK.
* Build changes both CSS and index.html and some other files => only CSS reloaded.

The above would fix itself with one more edit, but that's annoying.

20 months agoreleaser: Prepare repository for 0.140.0-DEV
hugoreleaser [Sat, 23 Nov 2024 15:46:37 +0000 (15:46 +0000)]
releaser: Prepare repository for 0.140.0-DEV

[ci skip]

20 months agoreleaser: Bump versions for release of 0.139.2
hugoreleaser [Sat, 23 Nov 2024 15:33:51 +0000 (15:33 +0000)]
releaser: Bump versions for release of 0.139.2

[ci skip]