2020-07-06 18:55:32 +00:00
|
|
|
{{ define "main" }}
|
2020-07-12 14:28:51 +00:00
|
|
|
{{ $pages := where .RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
|
|
{{ if (eq .Kind "home") }}
|
|
|
|
{{ $pages = where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $paginator := .Paginate $pages }}
|
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
<article class="gblog-post">
|
|
|
|
<header class="gblog-post__header">
|
|
|
|
<h1><a href="{{ .RelPermalink }}">{{ partial "title" . }}</a></h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="gblog-markdown">
|
|
|
|
{{ .Summary }}
|
|
|
|
</section>
|
|
|
|
<div class="gblog-post__readmore">
|
|
|
|
{{ if .Truncated }}
|
2020-07-17 17:19:03 +00:00
|
|
|
<a class="flex-inline align-center fake-link" title="Read full post" href="{{ .RelPermalink }}">Read full post</a>
|
2020-07-12 14:28:51 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="gblog-post__footer">
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ partial "metadata.html" . }}
|
2020-07-12 14:28:51 +00:00
|
|
|
</footer>
|
|
|
|
</article>
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ end }}
|