Skip to content

Commit 39ba06e

Browse files
committed
use .RelPermalink instead of the deprecated .URL for Hugo
1 parent 28ffdb5 commit 39ba06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/hugo-xmin/layouts/partials/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ end }}
2626
{{ range .Site.Menus.main }}
2727
<li{{ if .Identifier }} class="optional"{{ end }}>
28-
<a href="{{ .URL | relURL }}"{{ if eq .URL $.URL }} class="active"{{ end }}>{{ .Name }}</a>
28+
<a href="{{ .URL | relURL }}"{{ if eq .URL $.RelPermalink }} class="active"{{ end }}>{{ .Name }}</a>
2929
</li>
3030
{{ end }}
3131
{{ range .Site.Menus.icons }}

0 commit comments

Comments
 (0)