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">
|
2022-01-29 13:38:08 +00:00
|
|
|
<h1 class="gblog-post__title">
|
2022-02-05 19:02:17 +00:00
|
|
|
<a href="{{ .RelPermalink }}">{{ partial "utils/title" . }}</a>
|
2022-01-29 13:38:08 +00:00
|
|
|
</h1>
|
2021-12-30 14:55:55 +00:00
|
|
|
</header>
|
2020-07-12 14:28:51 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<section class="gblog-markdown">
|
2022-02-22 21:05:49 +00:00
|
|
|
{{ .Summary }}
|
2021-12-30 14:55:55 +00:00
|
|
|
</section>
|
|
|
|
<div class="gblog-post__readmore">
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<a
|
|
|
|
class="flex-inline align-center fake-link"
|
|
|
|
title="Read full post"
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
>
|
2022-01-12 20:43:53 +00:00
|
|
|
Read full post
|
|
|
|
<i class="gblog-icon">gblog_arrow_right</i>
|
|
|
|
</a>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-07-12 14:28:51 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<footer class="gblog-post__footer">
|
2022-01-29 13:38:08 +00:00
|
|
|
<div class="flex flex-wrap align-center gblog-post__meta">
|
|
|
|
{{ partial "metadata.html" . }}
|
|
|
|
</div>
|
2021-12-30 14:55:55 +00:00
|
|
|
</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 }}
|