blog/themes/farallon/layouts/index.html

20 lines
623 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" .Site.Params.mainSections }}
{{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }}
{{ if eq .Type "memo" }}
{{ partial "memo.html" . }}
{{ else }}
{{ partial "post.html" . }}
{{ end }}
{{ end }}
</div>
{{ $paginator := .Paginate (where .Pages "Type" "story") }}
{{partial "pagination.html" .}}
</main>
{{ end }}