Fix cases in navbar not showing

master
Quentin Duchemin 2023-01-20 19:21:32 +01:00
parent 07e6db65c9
commit c35489d493
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@
Dossiers Dossiers
</a> </a>
<div class="navbar-dropdown"> <div class="navbar-dropdown">
{{ range where .Site.Pages "Params.Code" "!=" nil }} {{ range where .Site.Pages "Params.code" "!=" nil }}
<a class="navbar-item {{ if eq $.Permalink .Page.Permalink }}is-active{{ end }}" href="{{ .Page.Permalink }}"> <a class="navbar-item {{ if eq $.Permalink .Page.Permalink }}is-active{{ end }}" href="{{ .Page.Permalink }}">
{{ .Title }} {{ .Title }}
{{ $casePosts := where .Site.RegularPages "CurrentSection.Params.Code" "==" .Params.Code }} {{ $casePosts := where .Site.RegularPages "CurrentSection.Params.code" "==" .Params.code }}
<span class="tag ml-2 is-rounded">{{ len $casePosts }}</span> <span class="tag ml-2 is-rounded">{{ len $casePosts }}</span>
</a> </a>
{{ end }} {{ end }}