Something went wrong. Try again.
My personal website ebardelli.com
Something went wrong. Try again.
123456789101112131415161718192021222324{{- 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 .Pages.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 -}}