mirror of https://github.com/jkjoy/hugoblog.git
22 lines
694 B
HTML
22 lines
694 B
HTML
{{ define "main" }}
|
|
<main class="site--main">
|
|
{{ if $.Site.Params.showprofile }}
|
|
{{ partial "profile.html" . }}
|
|
{{ end }}
|
|
{{ partial "talks.html" . }}
|
|
<div class="articleList">
|
|
{{ partial "hotmap.html" . }}
|
|
{{ $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 }} |