Merge pull request #13 from francoposa/main

header partial: replace deprecated .Path access with lower .Name
This commit is contained in:
Francesco Tomaselli 2024-07-29 22:29:18 +02:00 committed by GitHub
commit 9890a04990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@
{{ with site.Params.menu }} {{ with site.Params.menu }}
{{ range . }} {{ 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}}"> <a href="{{.url}}">
/{{.name }} /{{.name }}
</a> </a>