]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Wed, 8 May 2024 15:00:23 +0000 (15:00 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.7
hugoreleaser [Wed, 8 May 2024 14:46:24 +0000 (14:46 +0000)]
releaser: Bump versions for release of 0.125.7

[ci skip]

2 years agodeps: Downgrade github.com/getkin/kin-openapi v0.124.0 => v0.123.0
Bjørn Erik Pedersen [Wed, 8 May 2024 14:20:16 +0000 (16:20 +0200)]
deps: Downgrade github.com/getkin/kin-openapi v0.124.0 => v0.123.0

We have received reports from users of Hugo's `openapi3.Unmarshal` about breaking behavior in the mentioned `kin-openapi` version, so revert for now, pending further investigation.

2 years agoreadme: Update Sponsors
Bjørn Erik Pedersen [Wed, 8 May 2024 09:37:56 +0000 (11:37 +0200)]
readme: Update Sponsors

2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Sun, 5 May 2024 11:05:28 +0000 (11:05 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.6
hugoreleaser [Sun, 5 May 2024 10:52:52 +0000 (10:52 +0000)]
releaser: Bump versions for release of 0.125.6

[ci skip]

2 years agoFix one more resource change eviction logic issue
Bjørn Erik Pedersen [Sun, 5 May 2024 08:44:35 +0000 (10:44 +0200)]
Fix one more resource change eviction logic issue

This is how we should have fixed #1239.

Fixes #12456

2 years agoMake the cache eviction logic for stale entities more robust
Bjørn Erik Pedersen [Fri, 3 May 2024 09:04:57 +0000 (11:04 +0200)]
Make the cache eviction logic for stale entities more robust

Fixes #12458

2 years agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2
dependabot[bot] [Thu, 2 May 2024 08:04:59 +0000 (08:04 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2

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

---
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>
2 years agoRun mage generate
Bjørn Erik Pedersen [Thu, 2 May 2024 08:43:25 +0000 (10:43 +0200)]
Run mage generate

2 years agoresources/page: Pull internal Page methods into its own interface
Bjørn Erik Pedersen [Thu, 2 May 2024 08:41:58 +0000 (10:41 +0200)]
resources/page: Pull internal Page methods into its own interface

So it doesn't get visible when passing it to `jsonify`.

2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Wed, 1 May 2024 15:36:00 +0000 (15:36 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.5
hugoreleaser [Wed, 1 May 2024 15:22:11 +0000 (15:22 +0000)]
releaser: Bump versions for release of 0.125.5

[ci skip]

2 years agoFix rebuilds on cascade deletes/renames
Bjørn Erik Pedersen [Wed, 1 May 2024 08:01:25 +0000 (10:01 +0200)]
Fix rebuilds on cascade deletes/renames

And also avoid reading sub directories on simple changes to branch `_index.md` files.

Fixes #12449

2 years agocommands: Print "Webserver is ..." right before "Total ..."
Bjørn Erik Pedersen [Sat, 20 Apr 2024 13:36:54 +0000 (15:36 +0200)]
commands: Print "Webserver is ..." right before "Total ..."

Also fix it so

* It's not printed when running `hugo -w`
* It'd printed for all kinds of rebuilds

Fixes #12384

2 years agoMake sure replaced pages gets marked as stale
Bjørn Erik Pedersen [Tue, 30 Apr 2024 16:25:55 +0000 (18:25 +0200)]
Make sure replaced pages gets marked as stale

Fixes #12436

2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Thu, 25 Apr 2024 13:40:37 +0000 (13:40 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.4
hugoreleaser [Thu, 25 Apr 2024 13:27:26 +0000 (13:27 +0000)]
releaser: Bump versions for release of 0.125.4

[ci skip]

2 years agocommands: Clarify that create or install a theme are two options
Peter van Dijk [Thu, 25 Apr 2024 12:38:22 +0000 (14:38 +0200)]
commands: Clarify that create or install a theme are two options

2 years agoconfig: Setups with only one active language can never be multihost
Bjørn Erik Pedersen [Thu, 25 Apr 2024 11:28:42 +0000 (13:28 +0200)]
config: Setups with only one active language can never be multihost

Fixes #12288

2 years agoFix rebuilds when running hugo -w
Bjørn Erik Pedersen [Thu, 25 Apr 2024 10:30:16 +0000 (12:30 +0200)]
Fix rebuilds when running hugo -w

This was partly broken in Hugo 0.123.0.

We have two internal config options that gets set from the CLI:

* Running; a web server is running
* Watching; either set via `hugo -w`  or `hugo server --watch=false`

Part of the change detection code wrongly used the `Running` as a flag when `Watching` would be the correct.

Fixes #12296

2 years agobuild(deps): bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20
dependabot[bot] [Thu, 25 Apr 2024 08:54:26 +0000 (08:54 +0000)]
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20

Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.19 to 2.20.20.
- [Release notes](https://github.com/tdewolff/minify/releases)
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.19...v2.20.20)

---
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>
2 years agotpl/tplimpl: Fix double-escaping in opengraph template
Joe Mooring [Wed, 24 Apr 2024 19:15:57 +0000 (12:15 -0700)]
tpl/tplimpl: Fix double-escaping in opengraph template

Closes #12418

2 years agoUse Apache License without modification
Bjørn Erik Pedersen [Tue, 23 Apr 2024 07:15:10 +0000 (09:15 +0200)]
Use Apache License without modification

Closes #12415

2 years agomarkup/goldmark: Fix data race in the hugocontext wrapper
Bjørn Erik Pedersen [Mon, 22 Apr 2024 16:12:49 +0000 (18:12 +0200)]
markup/goldmark: Fix data race in the hugocontext wrapper

The window for this to happen is very small, but it has been reported by Go's race detector (-race flag) in a tests once.

2 years agoDelete .hugo_build.lock
Bjørn Erik Pedersen [Mon, 22 Apr 2024 14:57:48 +0000 (16:57 +0200)]
Delete .hugo_build.lock

Added to Git by accident.

2 years agotpl: Escape .Title in built-in image and link render hooks
Bjørn Erik Pedersen [Mon, 22 Apr 2024 08:56:02 +0000 (10:56 +0200)]
tpl: Escape .Title in built-in image and link render hooks

Co-authored-by: Joe Mooring <joe@mooring.com>
2 years agotpl/tplimpl: Improve embedded templates
Joe Mooring [Mon, 22 Apr 2024 13:08:58 +0000 (06:08 -0700)]
tpl/tplimpl: Improve embedded templates

- Do not call the YouTube oEmbed API
- Do not include the Hugo version in RSS feeds

Closes #12396

2 years agoSECURITY.md: Update link to security model
Eric Anderson [Sun, 21 Apr 2024 15:50:56 +0000 (08:50 -0700)]
SECURITY.md: Update link to security model

The security model was moved in https://github.com/gohugoio/hugoDocs/pull/2495

2 years agomodules: Fix potential infinite loop in module collection
Bjørn Erik Pedersen [Mon, 22 Apr 2024 08:39:36 +0000 (10:39 +0200)]
modules: Fix potential infinite loop in module collection

Fixes #12407

2 years agoreleaser: Bump versions for release of 0.125.2
hugoreleaser [Sat, 20 Apr 2024 15:29:44 +0000 (15:29 +0000)]
releaser: Bump versions for release of 0.125.2

[ci skip]

2 years agoOnly add root sections to the section pages menu
Bjørn Erik Pedersen [Sat, 20 Apr 2024 14:51:56 +0000 (16:51 +0200)]
Only add root sections to the section pages menu

Fixes #12399

2 years agoFix partial rebuilds for SCSS fetched with GetMatch and similar
Bjørn Erik Pedersen [Sat, 20 Apr 2024 09:05:35 +0000 (11:05 +0200)]
Fix partial rebuilds for SCSS fetched with GetMatch and similar
Fixes #12395

2 years agocommands: Add gen chromastyles --lineNumbersTableStyle flag
Joe Mooring [Thu, 18 Apr 2024 19:04:47 +0000 (12:04 -0700)]
commands: Add gen chromastyles --lineNumbersTableStyle flag

For symmetry, also rename --linesStyle to --lineNumbersInlineStyle.

Closes #12393

2 years agoresources/images: Fix TestColorLuminance on s390x
Bjørn Erik Pedersen [Fri, 19 Apr 2024 09:21:50 +0000 (11:21 +0200)]
resources/images: Fix TestColorLuminance on s390x

2 years agocommands: Provide examples for chromastyles flags
Joe Mooring [Thu, 18 Apr 2024 19:16:36 +0000 (12:16 -0700)]
commands: Provide examples for chromastyles flags

Closes #12387

2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Thu, 18 Apr 2024 08:34:20 +0000 (08:34 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.1
hugoreleaser [Thu, 18 Apr 2024 08:21:19 +0000 (08:21 +0000)]
releaser: Bump versions for release of 0.125.1

[ci skip]

2 years agotpl: Use erroridf for remote YouTube errors
Bjørn Erik Pedersen [Wed, 17 Apr 2024 12:22:38 +0000 (14:22 +0200)]
tpl: Use erroridf for remote YouTube errors

So they can be silenced.

Fixes #12383

2 years agobuild: Fix `GLIBC_2.29' not found issue
Bjørn Erik Pedersen [Wed, 17 Apr 2024 10:04:00 +0000 (12:04 +0200)]
build: Fix `GLIBC_2.29' not found issue

Closes #12381

2 years agoreleaser: Prepare repository for 0.126.0-DEV
hugoreleaser [Tue, 16 Apr 2024 15:21:02 +0000 (15:21 +0000)]
releaser: Prepare repository for 0.126.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.125.0
hugoreleaser [Tue, 16 Apr 2024 15:04:41 +0000 (15:04 +0000)]
releaser: Bump versions for release of 0.125.0

[ci skip]

2 years agodocs: Regen docshelper
Bjørn Erik Pedersen [Tue, 16 Apr 2024 10:08:28 +0000 (12:08 +0200)]
docs: Regen docshelper

2 years agoFix server rebuilds when adding a content file on Linux
Bjørn Erik Pedersen [Tue, 16 Apr 2024 07:32:08 +0000 (09:32 +0200)]
Fix server rebuilds when adding a content file on Linux

Fixes #12362

2 years agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1
dependabot[bot] [Mon, 15 Apr 2024 09:00:48 +0000 (09:00 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1

Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.2.0 to 2.2.1.
- [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.0...v2.2.1)

---
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>
2 years agoAdd Luminance to Color
Bjørn Erik Pedersen [Mon, 15 Apr 2024 08:09:25 +0000 (10:09 +0200)]
Add Luminance to Color

To sort an image's colors from darkest to lightest, you can then do:

```handlebars
{{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }}
```

This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance

Fixes #10450

2 years agohugolib: Add an asciidoc rebuild test case
Bjørn Erik Pedersen [Mon, 15 Apr 2024 13:48:42 +0000 (15:48 +0200)]
hugolib: Add an asciidoc rebuild test case

See #12375

2 years agoPass .RenderShortcodes' Page to render hooks as .PageInner
Bjørn Erik Pedersen [Thu, 11 Apr 2024 15:46:18 +0000 (17:46 +0200)]
Pass .RenderShortcodes' Page to render hooks as .PageInner

The main use case for this is to resolve links and resources (e.g. images) relative to the included `Page`.

A typical `include` would similar to this:

```handlebars
{{ with site.GetPage (.Get 0) }}
  {{ .RenderShortcodes }}
{{ end }}
```

And when used in a Markdown file:

```markdown
{{% include "/posts/p1" %}}
```

Any render hook triggered while rendering `/posts/p1` will get `/posts/p1` when calling `.PageInner`.

Note that

* This is only relevant for shortcodes included with `{{%` that calls `.RenderShortcodes`.
* `.PageInner` is available in all render hooks that, before this commit, received `.Page`.
* `.PageInner` will fall back to the value of `.Page` if not relevant and will always have a value.

Fixes #12356

2 years agobuild(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0
dependabot[bot] [Sun, 14 Apr 2024 14:23:53 +0000 (14:23 +0000)]
build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0

Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agohelpers: Fix TrimShortHTML when used with AsciiDoc content
Joe Mooring [Sun, 14 Apr 2024 04:17:39 +0000 (21:17 -0700)]
helpers: Fix TrimShortHTML when used with AsciiDoc content

Fixes #12369

2 years agogithub: Add a "free space" step on Ubuntu
Bjørn Erik Pedersen [Sun, 14 Apr 2024 14:13:44 +0000 (16:13 +0200)]
github: Add a "free space" step on Ubuntu

2 years agohelpers: Add BenchmarkTrimShortHTML
Bjørn Erik Pedersen [Sun, 14 Apr 2024 13:54:49 +0000 (15:54 +0200)]
helpers: Add BenchmarkTrimShortHTML

2 years agogithub: Update actions
Bjørn Erik Pedersen [Sun, 14 Apr 2024 11:14:22 +0000 (13:14 +0200)]
github: Update actions

2 years agogithub: Format GitHub actions files
Bjørn Erik Pedersen [Sun, 14 Apr 2024 11:10:43 +0000 (13:10 +0200)]
github: Format GitHub actions files

2 years agohugolib: Display server address after each rebuild
Joe Mooring [Sat, 13 Apr 2024 16:22:19 +0000 (09:22 -0700)]
hugolib: Display server address after each rebuild

Closes #12359

2 years agoresources/page: Add taxonomies Page method
Joe Mooring [Thu, 11 Apr 2024 19:42:57 +0000 (12:42 -0700)]
resources/page: Add taxonomies Page method

Closes #12316

2 years agocommands: Adjust completions
Bjørn Erik Pedersen [Thu, 11 Apr 2024 12:40:34 +0000 (14:40 +0200)]
commands: Adjust completions

2 years agocompletion: Improve existing argument completions, add many more
Ville Skyttä [Sun, 7 Apr 2024 20:33:17 +0000 (20:33 +0000)]
completion: Improve existing argument completions, add many more

Do not offer filenames to arguments not taking one, complete arguments
of options taking resource kinds, directory names, --logLevel, release
--step, config and new --format.

As an internal refactoring, use higher level functions to set flag
completions.  SetAnnotation works, but is more verbose than
alternatives, and uses bash specific wording.

While at it, move setting completions next to flag definitions
consistently.

Remove superfluous --destination completer setting, which is already
set elsewhere.

2 years agoUpgrade to Go 1.22.2
Bjørn Erik Pedersen [Thu, 11 Apr 2024 13:14:28 +0000 (15:14 +0200)]
Upgrade to Go 1.22.2

Closes #12351

2 years agobuild(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0
dependabot[bot] [Thu, 11 Apr 2024 11:31:33 +0000 (11:31 +0000)]
build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.19.0...v0.20.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>
2 years agogithub: Fix CI build
Bjørn Erik Pedersen [Thu, 11 Apr 2024 10:19:27 +0000 (12:19 +0200)]
github: Fix CI build

2 years agoall: Fix duplicate words in comments
Eitan Adler [Thu, 11 Apr 2024 07:31:33 +0000 (00:31 -0700)]
all: Fix duplicate words in comments

2 years agobuild(deps): bump golang.org/x/net from 0.23.0 to 0.24.0
dependabot[bot] [Fri, 5 Apr 2024 15:46:54 +0000 (15:46 +0000)]
build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.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>
2 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0
dependabot[bot] [Mon, 8 Apr 2024 08:34:15 +0000 (08:34 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.123.0 to 0.124.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.123.0...v0.124.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>
2 years agoall: Typo fixes
Christian Oliff [Thu, 11 Apr 2024 07:23:17 +0000 (16:23 +0900)]
all: Typo fixes

2 years agobabel: Run go fmt
Bjørn Erik Pedersen [Mon, 8 Apr 2024 16:28:04 +0000 (18:28 +0200)]
babel: Run go fmt

2 years agobabel: Close file before removing
guangwu [Mon, 8 Apr 2024 13:23:08 +0000 (21:23 +0800)]
babel: Close file before removing

2 years agobump golang.org/x/mod from 0.16.0 to 0.17.0
dependabot[bot] [Fri, 5 Apr 2024 08:59:02 +0000 (08:59 +0000)]
bump golang.org/x/mod from 0.16.0 to 0.17.0

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/mod/compare/v0.16.0...v0.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2 years agohugolib: Fix regression for blank summaries
curegit [Fri, 5 Apr 2024 15:43:55 +0000 (00:43 +0900)]
hugolib: Fix regression for blank summaries

Fix regression in content summarization so that we can use empty
summary by using the manual summary divider. Since v0.123, there
has been the regression that causes Hugo to use automatic summary
generation when the manual summary results in an empty string,
even if there is a `<!--more-->` summary divider.

2 years agoFix sectionPagesMenu for pages in root level
Bjørn Erik Pedersen [Fri, 5 Apr 2024 10:00:38 +0000 (12:00 +0200)]
Fix sectionPagesMenu for pages in root level

Fixes #12306

2 years agoresources/page: Escape hash sign in permalinks
Soren L. Hansen [Thu, 4 Apr 2024 20:31:20 +0000 (13:31 -0700)]
resources/page: Escape hash sign in permalinks

When creating a link to a file with a `#` in the filename, the link gets
truncated. This happens because the filename is eventaully passed to
`url.Parse` which (correctly!) interprets the `#` as fragment separator.

This commit escapes the `#` in the filename before creating the link.

Fixes #4926
Fixes #8232
Fixes #12342

Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
2 years agobuild(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0
dependabot[bot] [Wed, 20 Mar 2024 08:49:14 +0000 (08:49 +0000)]
build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0

Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.1.1 to 2.2.0.
- [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.1.1...v2.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1
dependabot[bot] [Thu, 4 Apr 2024 08:38:50 +0000 (08:38 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1

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

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

Signed-off-by: dependabot[bot] <support@github.com>
2 years agotpl/strings: Improve type checking
Joe Mooring [Thu, 4 Apr 2024 15:22:33 +0000 (08:22 -0700)]
tpl/strings: Improve type checking

2 years agobuild(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront
dependabot[bot] [Mon, 1 Apr 2024 08:25:24 +0000 (08:25 +0000)]
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront

Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.32.6 to 1.35.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.32.6...service/ecs/v1.35.4)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump golang.org/x/net from 0.22.0 to 0.23.0
dependabot[bot] [Thu, 4 Apr 2024 08:39:09 +0000 (08:39 +0000)]
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.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>
2 years agotpl/tplimpl: Improve youtube shortcode
Joe Mooring [Wed, 3 Apr 2024 20:09:11 +0000 (13:09 -0700)]
tpl/tplimpl: Improve youtube shortcode

Changes:

- Add query string params for controls, loop, mute, start, and end
- Add iframe loading attribute
- Obtain default iframe title from YouTube oEmbed API
- Fix autoplay feature
- Improve readability

Closes #3694
Closes #9213
Closes #10520
Closes #10575
Closes #10576

Co-authored-by: sgharms <sgharms@stevengharms.com>
2 years agoerrors: Return error from cast.ToStringE() consistently
seiya [Wed, 3 Apr 2024 00:12:13 +0000 (09:12 +0900)]
errors: Return error from cast.ToStringE() consistently

2 years agotpl/tplimpl: Improve embedded opengraph template
Joe Mooring [Mon, 1 Apr 2024 15:51:32 +0000 (08:51 -0700)]
tpl/tplimpl: Improve embedded opengraph template

Changes:

- Add tags per documentation
- Prefer site.Title over site.Params.title
- Plainify titles, tags, and descriptions
- Add fallback values for locale
- Fix pages related by series
- Improve readability

Closes #8296
Closes #8698
Closes #8991
Closes #9818
Closes #9866
Closes #10647

Co-authored-by: tomy0000000 <git@tomy.me>
Co-authored-by: sean-au <sean@powerfulwebdesign.com.au>
2 years agotpl/strings: Create strings.Diff template function
Joe Mooring [Tue, 2 Apr 2024 02:26:15 +0000 (19:26 -0700)]
tpl/strings: Create strings.Diff template function

Closes #12330

2 years agoFix resource bundling for overlapping page.md vs page.txt
Bjørn Erik Pedersen [Tue, 2 Apr 2024 09:53:43 +0000 (11:53 +0200)]
Fix resource bundling for overlapping page.md vs page.txt

Fixes #12320

2 years agotpl/tplimpl: Optionally exclude content from sitemap
Joe Mooring [Mon, 1 Apr 2024 22:30:03 +0000 (15:30 -0700)]
tpl/tplimpl: Optionally exclude content from sitemap

Define global inclusion/exclusion in site configuration, and override
via front matter. For example, to exclude a page from the sitemap:

    [sitemap]
    disable = true # default is false

Closes #653
Closes #12282

Co-authored-by: kolappannathan <kolappannathan@users.noreply.github.com>
Co-authored-by: felicianotech <FelicianoTech@gmail.com>
2 years agotpl/tplimpl: Remove trailing slash from void elements
Joe Mooring [Mon, 1 Apr 2024 15:07:02 +0000 (08:07 -0700)]
tpl/tplimpl: Remove trailing slash from void elements

Closes #11867

2 years agotpl/tplimpl: Update RSS template
Joe Mooring [Sat, 23 Mar 2024 20:39:44 +0000 (13:39 -0700)]
tpl/tplimpl: Update RSS template

- Use publication date for pubdate
- Include version in generator element

Closes #3918
Closes #11692

2 years agotpl/tplimpl: Update schema template
Joe Mooring [Sat, 23 Mar 2024 23:34:39 +0000 (16:34 -0700)]
tpl/tplimpl: Update schema template

Changes:

- Remove trailing comma from list of keywords.
- Improve keywords precedence:
  1. Use "keywords" term page titles.
  2. Use "keywords" from front matter if "keywords" is not a taxonomy.
  3. Use "tags" term page titles.
  4. Use term page titles from all taxonomies.
- Enable schema for all page kinds, previously limited to kind = page.
- Remove trailing slashes from void elements.
- Improve readability.

Closes #7570

Co-authored by: 0urobor0s <0urobor0s@users.noreply.github.com>

2 years agoresources: Use different cache key when copying resources
Joe Mooring [Mon, 25 Mar 2024 21:17:57 +0000 (14:17 -0700)]
resources: Use different cache key when copying resources

Closes #10412
Closes #12310

2 years agoFix panic with debug.Dump with Page when running the server
Bjørn Erik Pedersen [Tue, 26 Mar 2024 09:43:08 +0000 (10:43 +0100)]
Fix panic with debug.Dump with Page when running the server

This replaces the current implementation with `json.MarshalIndent` which doesn't produce the same output, but at least it doesn't crash.

There's a bug in the upstream `litter` library. This can probably be fixed, but that needs to wait.

I have tested `go-spew` which does not crash, but it is very data racy in this context.

FIxes #12309

2 years agotpl/tplimpl: Update Google Analytics template and config
Joe Mooring [Sat, 23 Mar 2024 20:07:00 +0000 (13:07 -0700)]
tpl/tplimpl: Update Google Analytics template and config

Google Analytics 4 (GA4) replaced Google Universal Analytics (UA)
effective 1 July 2023.

See https://support.google.com/analytics/answer/11583528.

Changes:

- Update tpl/tplimpl/embedded/templates/google_analytics.html
- Remove tpl/tplimpl/embedded/templates/google_analytics_async.html
- Remove extraneous config settings

Closes #11802
Closes #10093

2 years agohugolib: Conditionally suppress .Site.Author deprecation notice
Joe Mooring [Fri, 22 Mar 2024 20:02:56 +0000 (13:02 -0700)]
hugolib: Conditionally suppress .Site.Author deprecation notice

Suppress the .Site.Author deprecation notice unless the Author key
is present and not empty in the site configuration.

Closes #12297

2 years agoresources/page: Fix GoDoc comment
George Ma [Fri, 22 Mar 2024 07:56:10 +0000 (15:56 +0800)]
resources/page: Fix GoDoc comment

2 years agomarkup/asciidocext: Add Level to Heading struct
Joe Mooring [Thu, 21 Mar 2024 17:30:27 +0000 (10:30 -0700)]
markup/asciidocext: Add Level to Heading struct

Closes #12291

2 years agoreleaser: Prepare repository for 0.125.0-DEV
hugoreleaser [Wed, 20 Mar 2024 11:53:43 +0000 (11:53 +0000)]
releaser: Prepare repository for 0.125.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.124.1
hugoreleaser [Wed, 20 Mar 2024 11:40:10 +0000 (11:40 +0000)]
releaser: Bump versions for release of 0.124.1

[ci skip]

2 years agoFix potential deadlock in Translations
Bjørn Erik Pedersen [Wed, 20 Mar 2024 10:48:06 +0000 (11:48 +0100)]
Fix potential deadlock in Translations

Fixes #12129

2 years agoFix rebuild when changing mixed case named templates
Bjørn Erik Pedersen [Wed, 20 Mar 2024 10:00:08 +0000 (11:00 +0100)]
Fix rebuild when changing mixed case named templates

Fixes #12165

2 years agotesting: Set usesFMA as true for riscv64 too
Anthony Fok [Wed, 20 Mar 2024 07:59:13 +0000 (01:59 -0600)]
testing: Set usesFMA as true for riscv64 too

This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.

2 years agoFix regression for outputs defined in front matter for term pages
Bjørn Erik Pedersen [Tue, 19 Mar 2024 12:17:10 +0000 (13:17 +0100)]
Fix regression for outputs defined in front matter for term pages

Fixes #12275

2 years agoreleaser: Prepare repository for 0.125.0-DEV
hugoreleaser [Sat, 16 Mar 2024 15:57:20 +0000 (15:57 +0000)]
releaser: Prepare repository for 0.125.0-DEV

[ci skip]

2 years agoreleaser: Bump versions for release of 0.124.0
hugoreleaser [Sat, 16 Mar 2024 15:44:32 +0000 (15:44 +0000)]
releaser: Bump versions for release of 0.124.0

[ci skip]

2 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Sat, 16 Mar 2024 14:54:33 +0000 (15:54 +0100)]
docs: Regen CLI docs