24 lines
627 B
HTML
24 lines
627 B
HTML
{{- define "main" -}}
|
|
<div class="wrapper list-page">
|
|
<header class="header">
|
|
<h1 class="header-title center">{{ .Title }}</h1>
|
|
</header>
|
|
<main class="page-content" aria-label="Content">
|
|
{{ range .Site.RegularPages.GroupByDate "2006" }}
|
|
{{ $year := .Key }}
|
|
<h2 class="post-year">{{ $year }}</h2>
|
|
|
|
{{/* create a list of posts for each month, with month as heading */}}
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ partial "postCard" . }}
|
|
|
|
{{ end }} {{/* end range .Pages */}}
|
|
|
|
{{ end }} {{/* end range .Pages.GroupByDate "2006" */}}
|
|
|
|
</main>
|
|
</div>
|
|
{{- end -}}
|