diff options
author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2024-07-29 22:29:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-29 22:29:18 +0200 |
commit | c4dc247623cefc3be28e01a5ac1cc27fc5188ce6 (patch) | |
tree | ca4dce661c6aa73799958ccbe3563145d48dcdc6 | |
parent | 4704defdc8eee9bc5c9ed41c651f21bba2a4b631 (diff) | |
parent | a0252219c55cf9775582e843083424f123d4ac16 (diff) |
Merge pull request #13 from francoposa/main
header partial: replace deprecated .Path access with lower .Name
-rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8933883..446fb19 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -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> |