website/layouts/association/list.html

25 lines
658 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 .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{.Title }}</a>
</li>
{{ end }}
</ul>
</nav>
{{ if .Content }}
<div>
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
</main>
</div>
{{ end }}