2022-06-15 14:51:47 +07:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="row justify-content-center">
|
2022-07-14 11:29:54 +07:00
|
|
|
<div class="col-md-12 col-lg-9">
|
|
|
|
<h1 class="text-center">{{ .Title }}</h1>
|
|
|
|
{{ with .Content -}}<div class="text-center">{{ . }}</div>{{ end -}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row row-cols-1 row-cols-lg-2 g-lg-5">
|
|
|
|
{{ $paginator := .Paginate (.Data.Pages) -}}
|
|
|
|
{{ range $paginator.Pages -}}
|
|
|
|
<div class="col">
|
|
|
|
<div class="card">
|
|
|
|
{{- .Scratch.Set "fillImage" "1270x620 Center" -}}
|
|
|
|
{{ partial "content/card-image.html" . }}
|
|
|
|
<div class="card-body">
|
|
|
|
<article>
|
|
|
|
<h2 class="h3"><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a></h2>
|
|
|
|
<p>{{ .Params.excerpt | safeHTML }}</p>
|
|
|
|
{{ partial "main/blog-meta.html" . -}}
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end -}}
|
|
|
|
</div>
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-12 col-lg-9">
|
|
|
|
{{ $.Scratch.Set "paginator" true }}
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
2022-06-15 14:51:47 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|