blog/layouts/section/memos.html

20 lines
604 B
HTML
Raw Permalink Normal View History

2024-05-08 16:41:18 +08:00
{{ define "main" }}
2024-05-20 19:32:19 +08:00
<main class="site--main">
{{ if $.Site.Params.showprofile }}
{{ partial "profile.html" . }}
2024-05-08 16:41:18 +08:00
{{ end }}
2024-05-20 19:32:19 +08:00
<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>
2024-05-08 16:41:18 +08:00
{{ end }}