brainbaking/themes/brainbaking-minimal/layouts/_default/list.html

51 lines
1.0 KiB
HTML
Raw Normal View History

2020-05-27 20:35:46 +02:00
{{ partial "header" . }}
{{ partial "bigimg" . }}
<a id="top"></a>
<main class="list">
2020-05-27 20:35:46 +02:00
2020-05-27 21:20:01 +02:00
{{ if .Title }}
<header>
2022-10-22 16:06:25 +02:00
<h1>
<svg class='icon'><use xlink:href="#{{ .Params.icontag }}"></use></svg>&nbsp;{{ .Title }}
</h1>
2022-10-21 07:53:23 +02:00
2020-06-13 17:16:18 +02:00
{{ if isset .Params "subtitle" }}
<h2>{{ .Params.subtitle }}</h2>
{{ end }}
</header>
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
2020-06-13 17:16:18 +02:00
{{ $paginator := .Paginate (where .Data.Pages ".Params.type" "ne" "archive") $.Site.Params.pagination }}
{{ if eq $paginator.PageNumber 1 }}
2020-05-30 17:41:38 +02:00
<hr/>
{{ with .Content }}
<article>
2020-05-30 17:41:38 +02:00
{{ . }}
</article>
2020-05-30 17:41:38 +02:00
{{ end }}
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
2020-05-27 21:20:01 +02:00
{{ if (not .Params.disableList) }}
<div class="list">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
<h2>{{ .Key }}</h2>
{{ range .Pages.GroupByDate "Jan" }}
<h3>{{ .Key }}</h3>
{{ partial "list-ul" . }}
{{ end }}
2020-05-27 21:20:01 +02:00
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
<footer>
</footer>
2020-05-27 21:20:01 +02:00
</main>
2020-05-27 20:35:46 +02:00
{{ partial "footer" . }}