aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts/list.html
blob: da132207a2adf8158a414e9aca22146b0fb39962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{ define "main" }}
  {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
  {{ range sort .Paginator.Pages }}
  <article>
    <h2>
      <a href="{{ .Permalink }}">{{ .Title }}</a>
    </h2>
    <h5>{{ .Date.Format "January 2, 2006" }}</h5>
    <p>
      {{ .Summary }}
      {{ if .Truncated }}
      <a href="{{ .Permalink }}">...</a>
      {{ end }}
    </p>
  </article>
  {{ end }}
  {{ template "_internal/pagination.html" . }}
{{ end }}