hugo:release-0.125.0

Last commit made on 2024-04-16
Get this branch:
git clone -b release-0.125.0 https://git.launchpad.net/hugo

Branch merges

Branch information

Name:
release-0.125.0
Repository:
lp:hugo

Recent commits

8c14d1e... by hugoreleaser <email address hidden>

releaser: Prepare repository for 0.126.0-DEV

[ci skip]

a32400b... by hugoreleaser <email address hidden>

releaser: Bump versions for release of 0.125.0

[ci skip]

df9f2fb... by Bjørn Erik Pedersen

docs: Regen docshelper

fa60a2f... by Bjørn Erik Pedersen

Fix server rebuilds when adding a content file on Linux

Fixes #12362

fe63de3... by "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>

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] <email address hidden>

e197c7b... by Bjørn Erik Pedersen

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

74e9129... by Bjørn Erik Pedersen

hugolib: Add an asciidoc rebuild test case

See #12375

df11327... by Bjørn Erik Pedersen

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

a18e2bc... by "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>

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] <email address hidden>

6049ba9... by Joe Mooring <email address hidden>

helpers: Fix TrimShortHTML when used with AsciiDoc content

Fixes #12369