mirror of
https://github.com/tomfran/typo.git
synced 2025-04-27 05:59:54 +03:00
header partial: replace deprecated .Path access with lower .Name
This commit is contained in:
parent
33198a8dd0
commit
c7cc1c5965
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue