mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
18 hours ago f57627951304b21dbd807185b08b8ae2da040f45
refs
author Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Sunday, November 22, 2026 04:19 +0100
committer GitHub <noreply@github.com>
Sunday, November 22, 2026 04:19 +0100
commitf57627951304b21dbd807185b08b8ae2da040f45
tree 2ae0fddce12579b20f1810bc711e39364fbf27ca tree | zip | gz
parent f1e09c8ac83eb35b192132bd79906f4a1fc0c566 view | diff
fix(layouts): migrate reserved page field lookups (#1133)

Hugo v0.169.0 deprecates reserved front matter lookups through
`.Params`. Migrate title, header description, and submenu link-title
lookups to Page methods while preserving explicit-field presence, custom
parameter overrides, and existing home-title and overview-label
fallbacks.

Run fixture builds at info log level so newly introduced deprecations
fail the diagnostics gate before Hugo promotes them to warnings.

* [x] Added feature fixtures and diagnostics tests. No parameters or
shortcodes were added, so no catalogue entry is required.

## Validation

* All 63 tests pass on standard Hugo v0.160.0, v0.169.0, v0.170.0, and
v0.170.1.
* The isolated PR checkout also passes all 63 tests on v0.170.1.
* 37 header and navigation browser tests pass, including mobile,
keyboard, no-JavaScript, and accessibility cases.
* Static checks pass: 32 HTML files and no internal link errors. Feature
registration, Biome, Markdown lint, and commit hooks pass.

The minimum remains Hugo v0.160.0. Rendered fallback behaviour is
asserted by the new fixture.
6 files modified
12 files added
159 ■■■■■ changed files
layouts/_partials/func/GetExplicitPageField.html 18 ●●●●● diff | view | raw | blame | history
layouts/_partials/header/submenu.html 2 ●●●●● diff | view | raw | blame | history
layouts/_partials/hooks/header/description.html 2 ●●●●● diff | view | raw | blame | history
layouts/baseof.html 4 ●●●●● diff | view | raw | blame | history
tests/README.md 2 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/_index.md 3 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/articles/_index.md 4 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/articles/custom.md 10 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/articles/explicit.md 7 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/custom/_index.md 6 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/custom/child.md 3 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/fallback/_index.md 3 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/content/fallback/untitled.md 1 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/hugo.toml 39 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/page-fields.test.mjs 36 ●●●●● diff | view | raw | blame | history
tests/fixtures/page-fields/static/header.svg 1 ●●●●● diff | view | raw | blame | history
tests/support/prepare-site.mjs 11 ●●●●● diff | view | raw | blame | history
tests/unit/build-diagnostics.test.mjs 7 ●●●●● diff | view | raw | blame | history