34 lines
814 B
HTML
34 lines
814 B
HTML
{{ define "main" }}
|
|
<main class="container" aria-role="main">
|
|
<header class="header">
|
|
<h1>{{ .Title }}</h1>
|
|
{{ with .Params.subtitle }}
|
|
<span class="subtitle">{{ . }}</span>
|
|
{{ end }}
|
|
</header>
|
|
<div class="content">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Date.Format "2006-01-02" }} | {{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
|
|
{{ range .Pages.GroupByParam "kind" }}
|
|
<h3>{{ .Key }}</h3>
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Date.Format "2006-01-02" }} | {{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
<!-- TODO: Pagination: see https://gohugo.io/templates/pagination/ -->
|
|
</main>
|
|
{{ end }}
|