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

21 lines
519 B
HTML
Raw Normal View History

2018-11-24 15:14:43 +01:00
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
<article>
<h2>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
2018-11-24 15:14:43 +01:00
</h2>
2018-11-25 13:30:25 +01:00
<h5>
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
</h5>
2019-01-24 23:30:31 +01:00
<p class="markdown">
2018-11-25 13:30:25 +01:00
{{- .Summary -}}
2018-11-24 15:14:43 +01:00
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">...</a>
2018-11-24 15:14:43 +01:00
{{ end }}
</p>
</article>
{{ end }}
{{ template "_internal/pagination.html" . }}
2018-11-25 13:30:25 +01:00
{{ end }}