Fix cases in navbar not showing
parent
07e6db65c9
commit
c35489d493
|
@ -37,10 +37,10 @@
|
|||
Dossiers
|
||||
</a>
|
||||
<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 }}">
|
||||
{{ .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>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue