website/layouts/association/list.html

30 lines
884 B
HTML

{{ define "main" }}
<div class="content-with-side-menu">
<main class="page-container">
{{ $listtitle := .Title }}
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<nav class="sticky-nav">
<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 }}
</div>
{{ end }}
</main>
</div>
{{ end }}