bunteshaus.de/themes/buha/layouts/partials/layout/archive.html
2022-06-15 10:43:51 +02:00

16 lines
583 B
HTML

{{ if ne .context.Content "" }}
{{ partial "snippets/content" (dict "content" .context.Content) }}
{{ end }}
<div>
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ range $pages.GroupByDate "2006" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.GroupByDate "January" }}
<h4 style="margin-left: 1em;">{{ .Key }}:</h4>
{{ range .Pages }}
<div style="margin-left: 2em;">{{ .Date.Format "02.01.2006" }} <a href="{{ .Permalink }}" class="underline">{{ .Title }}</a></div>
{{ end }}
{{ end }}
{{ end }}
</div>