Try to remove case ToC for non-case pages

master
Quentin Duchemin 2021-10-15 02:05:28 +02:00
parent a557febf2e
commit 1c8574716e
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
<aside class="menu column is-3 mt-2 is-align-self-flex-start"> <aside class="menu column is-3 mt-2 is-align-self-flex-start">
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}} {{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
{{ with .CurrentSection }} {{ with .CurrentSection }}
{{ if .Params.Title }}
<p class="menu-label"> <p class="menu-label">
Dans le dossier « <a href="{{ .Permalink }}">{{ .Params.Title }} »</a>... Dans le dossier « <a href="{{ .Permalink }}">{{ .Params.Title }} »</a>...
</p> </p>
@ -19,6 +20,7 @@
{{ range $postsSorted }} {{ range $postsSorted }}
<a {{ if eq $.Title .Title }} class="is-active" {{ end }} href="{{ .Permalink }}">{{ .Title }}</a> <a {{ if eq $.Title .Title }} class="is-active" {{ end }} href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }} {{ end }}
{{ end }}
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}