summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-07-29 22:29:18 +0200
committerGitHub <noreply@github.com>2024-07-29 22:29:18 +0200
commitc4dc247623cefc3be28e01a5ac1cc27fc5188ce6 (patch)
treeca4dce661c6aa73799958ccbe3563145d48dcdc6 /layouts/partials
parent4704defdc8eee9bc5c9ed41c651f21bba2a4b631 (diff)
parenta0252219c55cf9775582e843083424f123d4ac16 (diff)
Merge pull request #13 from francoposa/main
header partial: replace deprecated .Path access with lower .Name
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/header.html2
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>