Skip to content
/ website Public

Fix compatibility with newer Hugo versions - #761

Open
przemub wants to merge 1 commit into
haiku:masterfrom
przemub:hugo-compat
Open

przemub wants to merge 1 commit into
haiku:masterfrom
przemub:hugo-compat

Conversation

@przemub

@przemub przemub commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

While #738 is a full migration to the new template structure, this PR introduces minimal changes so it builds on the current hugo v0.166.0. There were some required changes introduced in the meantime ([security] section, since 0.165) as well.

Changes:

  • Rename languageCode to locale in config.toml
  • Whitelist text/html content files in the new [security] section, since Hugo >= 0.165 blocks them by default and the site has many hand-written HTML pages
  • Rename dotted partials (footer.copyright.html, header.includes.html) to hyphenated names, as the new template system interprets dots in template names

- Rename languageCode to locale in config.toml
- Whitelist text/html content files in the new [security] section,
  since Hugo >= 0.165 blocks them by default and the site has many
  hand-written HTML pages
- Rename dotted partials (footer.copyright.html, header.includes.html)
  to hyphenated names, as the new template system interprets dots

Change-Id: Ib932f1f02115511dcebbcc0e978ae9cc2f9de041
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant