header partial: replace deprecated .Path access with lower .Name

This commit is contained in:
francoposa 2024-07-27 15:39:07 -07:00
parent 33198a8dd0
commit c7cc1c5965

View file

@ -11,7 +11,7 @@
{{ with site.Params.menu }}
{{ range . }}
<p class="small {{ if eq .url $currentPage.Path }} bold {{end}}">
<p class="small {{ if eq .name (lower $currentPage.Name) }} bold {{end}}">
<a href="{{.url}}">
/{{.name }}
</a>