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:
parent
8ab5787e68
commit
219cc91dc2
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<nav>
|
<nav>
|
||||||
<ul><li><a href="/"><strong>{{ .Site.Title }}</strong></a></li></ul>
|
<ul><li><a href="/"><strong>{{ .Site.Title }}</strong></a></li></ul>
|
||||||
<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>
|
<li><a href="{{ .url }}"{{ if eq (relURL .url) $.RelPermalink }} aria-current="page"{{ end }}>{{ .name }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue