blog/themes/farallon/layouts/index.html

20 lines
623 B
HTML
Raw Normal View History

2024-05-06 12:00:46 +08:00
{{ 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" "posts") }}
2024-05-06 12:00:46 +08:00
{{partial "pagination.html" .}}
</main>
{{ end }}