2020-04-15 15:48:16 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-12 col-lg-10 col-xl-8">
|
|
|
|
<article>
|
|
|
|
<h1 class="text-center">{{ .Title }}</h1>
|
|
|
|
<div class="text-center">{{ .Content }}</div>
|
|
|
|
<div class="card-list">
|
2021-09-09 09:48:27 +02:00
|
|
|
{{ $paginator := .Paginate (.Data.Pages) -}}
|
|
|
|
{{ range $paginator.Pages -}}
|
2020-04-15 15:48:16 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
2021-04-02 19:45:05 +02:00
|
|
|
<h2 class="h3"><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a></h2>
|
2020-11-04 08:26:58 +01:00
|
|
|
<p>{{ .Params.lead | safeHTML }}</p>
|
2020-04-15 15:48:16 +02:00
|
|
|
{{ partial "main/blog-meta.html" . -}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end -}}
|
2021-09-09 09:48:27 +02:00
|
|
|
{{ $.Scratch.Set "paginator" true }}
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
2020-04-15 15:48:16 +02:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|