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