2017-09-07 22:41:16 +03:00
|
|
|
{{ define "main" -}}
|
2020-05-25 23:34:28 +03:00
|
|
|
<div class="posts">
|
|
|
|
{{- $regularPages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}}
|
|
|
|
{{- $pagesNotHidden := where $regularPages ".Params.hidden" "==" false -}}
|
|
|
|
{{- $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil -}}
|
2020-02-10 20:38:11 +02:00
|
|
|
|
2020-05-25 23:34:28 +03:00
|
|
|
{{- $pages := $pagesNotHidden | union $pagesHiddenUnset -}}
|
|
|
|
{{- $paginator := .Paginate $pages -}}
|
2020-02-10 20:38:11 +02:00
|
|
|
|
2020-05-25 23:34:28 +03:00
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
<article class="post">
|
|
|
|
<h1 class="post-title">
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
</h1>
|
2020-02-10 20:38:11 +02:00
|
|
|
|
2020-05-25 23:34:28 +03:00
|
|
|
<div class="post-date">
|
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> · {{ .ReadingTime }} min read
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Description }}
|
|
|
|
{{ .Description }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .Summary }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<div class="read-more-link">
|
|
|
|
<a href="{{ .RelPermalink }}">Read More</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
2020-02-10 20:38:11 +02:00
|
|
|
{{- end }}
|
2020-05-25 23:34:28 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
2018-08-29 20:22:23 +03:00
|
|
|
{{- end }}
|