Try to remove case ToC for non-case pages
parent
a557febf2e
commit
1c8574716e
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue