1
0
Fork 0

fix .URL deprecated warning

This commit is contained in:
nanxiaobei 2021-08-21 04:18:07 +08:00
parent 0532220ff3
commit 0c673f4f3f

View file

@ -92,7 +92,7 @@
{{ if site.Menus.main }} {{ if site.Menus.main }}
<nav class="menu"> <nav class="menu">
{{ $url := .URL }} {{ $url := .Permalink }}
{{ range site.Menus.main }} {{ range site.Menus.main }}
<a class="{{ if eq $url .URL }}active{{ end }}" href="{{ .URL }}">{{ .Name }}</a> <a class="{{ if eq $url .URL }}active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
{{ end }} {{ end }}