28 lines
676 B
HTML
28 lines
676 B
HTML
{{- define "main" -}}
|
|
<div class="wrapper list-page">
|
|
<header class="header">
|
|
<h1 class="header-title center typewriter">{{ .Title }}</h1>
|
|
</header>
|
|
<main class="page-content e-content typewriter" aria-label="Content">
|
|
|
|
{{.Content}}
|
|
{{/* create a list of posts for each month, with month as heading */}}
|
|
|
|
{{ range $index, $element := .Pages.ByDate.Reverse }}
|
|
|
|
{{ if (eq $index 0) }}
|
|
{{ $element.Content}}
|
|
<hr class="p-4">
|
|
|
|
{{else}}
|
|
{{ partial "postCard" $element }}
|
|
{{ end }}
|
|
|
|
{{ end }} {{/* end range .Pages.ByDate */}}
|
|
</main>
|
|
{{- partial "syndication.html" . -}}
|
|
{{- partial "comments.html" . -}}
|
|
</div>
|
|
|
|
{{- end -}}
|