fix(association): sections menu

This commit is contained in:
Matthieu Bessat 2024-03-10 23:27:47 +01:00
parent 110539843c
commit dc82b8b4c0
11 changed files with 141 additions and 38 deletions

View file

@ -5,15 +5,20 @@
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<nav class="sticky-nav">
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{.Title }}</a>
</li>
{{ end }}
</ul>
<ul>
{{ range .CurrentSection.Pages }}
<li>
{{ $title := .Title }}
{{ with .Params.short_title }}
{{ $title = . }}
{{ end }}
<a href="{{ .RelPermalink }}">{{ $title }}</a>
</li>
{{ end }}
</ul>
</nav>
{{ if .Content }}
<div>
{{ with .Content }}<div>{{ . }}</div>{{ end }}