blog/themes/xsfx/layouts/all/list.html

17 lines
443 B
HTML

{{ define "main" }}
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" (slice "posts" "notes")) }}
{{ range $paginator.Pages }}
<article class="h-entry">
{{ if eq .Type "posts" }}
{{ partial "article.html" . }}
{{ else if eq .Type "notes" }}
{{ partial "note.html" . }}
{{ end }}
<hr>
</article>
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ end }}