Fix cases in navbar not showing
parent
07e6db65c9
commit
c35489d493
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue