bunteshaus.de/themes/buha/layouts/partials/layout/archive.html

16 lines
727 B
HTML
Raw Normal View History

2022-04-11 15:45:49 +02:00
{{ if ne .context.Content "" }}
{{ partial "snippets/content" (dict "content" .context.Content) }}
{{ end }}
2022-06-15 10:42:34 +02:00
<div>
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ range $pages.GroupByDate "2006" }}
2022-06-15 10:49:11 +02:00
<h3 style="margin-top: 0; padding-top: 0; margin-bottom: 0; padding-bottom: 0;">{{ .Key }}</h3>
2022-06-15 10:42:34 +02:00
{{ range .Pages.GroupByDate "January" }}
2022-06-15 10:49:11 +02:00
<h4 style="margin-left: 1em; margin-top: 0; padding-top: 0; margin-bottom: 0; padding-bottom: 0;">{{ .Key }}:</h4>
2022-06-15 10:42:34 +02:00
{{ range .Pages }}
2022-06-15 10:43:51 +02:00
<div style="margin-left: 2em;">{{ .Date.Format "02.01.2006" }} <a href="{{ .Permalink }}" class="underline">{{ .Title }}</a></div>
2022-06-15 10:42:34 +02:00
{{ end }}
{{ end }}
{{ end }}
</div>