hugo-book/layouts/posts/list.html
2018-11-25 11:59:42 +01:00

18 lines
462 B
HTML

{{ 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 }}