25 lines
645 B
HTML

{{ define "main" }}
<h1>All {{ .Title }}</h1>
{{ .Content }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ range $paginator.Pages }}
<article>
<time>
{{ .PublishDate.Format "2 January 2006" }}
</time>
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<div class="barcode">
{{ .Params.url }}
</div>
{{ with .Params.cover }}
<div class="cover" style="background-image:url('{{ . }}');"></div>
{{ end }}
{{ .Summary }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}