hugo-book-theme/layouts/posts/list.html

20 lines
483 B
HTML
Raw Normal View History

2018-11-24 15:14:43 +01:00
{{ define "main" }}
<section>
{{ $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" . }}
</section>
{{ end }}