fix .URL deprecated warning
This commit is contained in:
parent
0532220ff3
commit
0c673f4f3f
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue