blog/layouts/section/memos.html

20 lines
604 B
HTML

{{ define "main" }}
<main class="site--main">
{{ if $.Site.Params.showprofile }}
{{ partial "profile.html" . }}
{{ end }}
<div class="articleList">
{{ $pages := where .Site.RegularPages "Type" "in" "memo" }}
{{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }}
{{ if eq .Type "memo" }}
{{ partial "memo.html" . }}
{{ else }}
{{ partial "memo.html" . }}
{{ end }}
{{ end }}
</div>
{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
{{partial "pagination.html" .}}
</main>
{{ end }}