fix: use hugo.Data instead of deprecated .Site.Data

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ludo 2026-04-11 18:08:59 +02:00
parent 8ab5787e68
commit 219cc91dc2
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E

View file

@ -1,7 +1,7 @@
<nav>
<ul><li><a href="/"><strong>{{ .Site.Title }}</strong></a></li></ul>
<ul>
{{- range sort .Site.Data.nav "weight" }}
{{- range sort hugo.Data.nav "weight" }}
<li><a href="{{ .url }}"{{ if eq (relURL .url) $.RelPermalink }} aria-current="page"{{ end }}>{{ .name }}</a></li>
{{- end }}
</ul>