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

43 lines
870 B
HTML

{{ partial "header" . }}
<a id="top"></a>
<main class="list">
<header>
<h1 id="header" class="p-name">
<svg class='icon'><use xlink:href="#{{ .Params.icontag }}"></use></svg>&nbsp;{{ .Title }}
</h1>
</header>
{{ $paginator := .Paginate (where .Data.Pages ".Params.type" "ne" "archive") $.Site.Params.pagination }}
{{ if eq $paginator.PageNumber 1 }}
<hr/>
{{ with .Content }}
<article>
{{ . }}
</article>
{{ end }}
{{ end }}
<div class="tootlist">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
<h2>{{ .Key }}</h2>
{{ range .Pages.GroupByDate "January" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.ByDate.Reverse }}
{{ partial "toot" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
<footer>
</footer>
</main>
{{ partial "footer" . }}