feat(hugo): replace deprecated APIs for Hugo v0.156+ compatibility

Migrate site.Data → hugo.Data (42 occurrences), site.IsMultiLingual →
hugo.IsMultilingual, and site.AllPages → hugo.Sites nested range.
Simplify Netlify redirects template to use pre-processed aliases
instead of relLangURL per gohugoio/hugo#14408.
This commit is contained in:
George Cushen committed 2026-03-27 03:25:42 +00:00
1 parent 94703c5c4f
commit ef8ed449c7
25 files changed
+5824 -5838

No files matched your search

@@ -2,8 +2,10 @@
# Automatically generated
# Documentation: https://docs.netlify.com/routing/redirects/
{{- /* Note: code purposely un-indented to preserve required spacing in output. */ -}}
{{- range $page := where site.AllPages ".Aliases" "!=" nil -}}
{{- range $s := hugo.Sites -}}
{{- range $page := where $s.Pages ".Aliases" "!=" nil -}}
{{- range $page.Aliases }}
{{ .|relLangURL }} {{ $page.RelPermalink -}}
{{ . }} {{ $page.RelPermalink -}}
{{- end }}
{{- end }}
{{- end -}}