2020-08-24 01:48:03 -05:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
{{/* get all the pages that are regular posts and not pages */}}
|
2021-01-03 07:06:59 -06:00
|
|
|
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
|
2020-08-24 01:48:03 -05:00
|
|
|
{{ $postsList := where .Site.RegularPages "Section" "in" $postsDir }}
|
|
|
|
|
|
|
|
{{/* pagination */}}
|
|
|
|
{{ range (.Paginate $postsList).Pages }}
|
|
|
|
<div class="card">
|
2021-01-03 14:38:54 -06:00
|
|
|
<h2>
|
2020-08-24 01:48:03 -05:00
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
2021-01-03 14:38:54 -06:00
|
|
|
</h2>
|
2020-08-24 01:48:03 -05:00
|
|
|
<p class="date">
|
2021-01-03 06:15:46 -06:00
|
|
|
<span title="Date"> </span>
|
2020-08-24 01:48:03 -05:00
|
|
|
{{ .Date.Format "2006-01-02" }}
|
|
|
|
{{ if .Params.tags }}
|
2021-01-03 06:15:46 -06:00
|
|
|
| <!-- Pipe character as visual separator between date and tags-->
|
|
|
|
<span title="Tags"> </span>
|
|
|
|
{{ range .Params.tags }}
|
2021-01-03 07:06:59 -06:00
|
|
|
<a href="/tags/{{ . }}">#{{ . }}</a>
|
2021-01-03 06:15:46 -06:00
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
<div class="articlePreview">
|
|
|
|
{{ .Summary }}
|
2021-01-04 06:44:25 -06:00
|
|
|
<a href="{{ .Permalink }}">Continue reading </a>
|
2020-08-24 01:48:03 -05:00
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-01-04 06:20:55 -06:00
|
|
|
{{- partial "paginator.html" . -}}
|
2020-08-24 01:48:03 -05:00
|
|
|
|
|
|
|
{{ end }}
|