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

This commit is contained in:
francoposa 2024-07-27 15:39:07 -07:00
parent b3d6f78dd4
commit 86ee1e017a

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>