hugo-book-theme/layouts/posts/list.html
2018-11-25 13:30:25 +01:00

20 lines
496 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>
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
</h5>
<p>
{{- .Summary -}}
{{ if .Truncated }}
<a href="{{ .Permalink }}">...</a>
{{ end }}
</p>
</article>
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}