blog/themes/farallon/layouts/index.html

22 lines
694 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 }}
2024-06-16 11:14:37 +08:00
{{ partial "talks.html" . }}
2024-05-06 12:00:46 +08:00
<div class="articleList">
2024-06-16 11:14:37 +08:00
{{ partial "hotmap.html" . }}
2024-05-06 12:00:46 +08:00
{{ $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-06-14 14:03:34 +08:00
{{ $paginator := .Paginate (where .Pages "Type" "story") }}
2024-05-06 12:00:46 +08:00
{{partial "pagination.html" .}}
</main>
{{ end }}