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>
|
2024-05-08 15:38:49 +08:00
|
|
|
{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
|
2024-05-06 12:00:46 +08:00
|
|
|
{{partial "pagination.html" .}}
|
|
|
|
</main>
|
|
|
|
{{ end }}
|