blob: 43695a25d748f8d496078382ed955a1642275654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") }}
{{ range $paginator.Pages }}
<article class="post post--preview">
<header>
<h2 class="post__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="post__meta"><time datetime="{{ .Date.Format "02 January 2006" }}">{{ .Date.Format "02 January 2006" }}</time></div>
</header>
<section class="post__excerpt">
<p>{{ .Summary }}…</p>
{{ if .Truncated }}
<p class="readmore"><a href="{{ .Permalink }}">{{ .Site.Params.keepReading }}</a></p>
{{ end }}
</section>
</article>
{{ end }}
|