pi-www-theme-soho/layouts/index.html

29 lines
791 B
HTML
Raw Normal View History

2017-09-07 22:41:16 +03:00
{{ define "main" -}}
2020-05-25 23:34:28 +03:00
<div class="posts">
2020-06-15 20:52:15 +03:00
{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}}
2020-05-25 23:34:28 +03:00
{{- $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">
2020-06-15 20:52:15 +03:00
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> &middot; {{ .ReadingTime }} min read
2020-05-25 23:34:28 +03:00
</div>
2020-06-15 20:52:15 +03:00
<div>
2020-05-25 23:34:28 +03:00
{{ .Summary }}
2020-06-15 20:52:15 +03:00
</div>
2020-05-25 23:34:28 +03:00
<div class="read-more-link">
2020-06-15 21:00:52 +03:00
<a href="{{ .Permalink }}">Read More</a>
2020-05-25 23:34:28 +03:00
</div>
</article>
2020-02-10 20:38:11 +02:00
{{- end }}
2020-05-25 23:34:28 +03:00
</div>
{{ template "_internal/pagination.html" . }}
{{- end }}