blob: e9ad34d1577a8e5faf01aac0a48930f58c244e13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{{ define "main" }}
<section id="main" class="index">
<div class="post_list container">
{{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
<article class="post content">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
<h3 class="title">
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
</h3>
<div class="post_content summary">
{{ .Summary }}
{{ if .Truncated }}
<span class="hellip">…</span>
{{ end }}
</div>
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>
</section>
{{ end }}
|