gcg-website/layouts/_default/list.html
Denys Konovalov d2ab31fa7a
All checks were successful
website-main / prod-build (push) Successful in 14s
website-main / test-build (push) Successful in 9s
minor changes
2024-03-24 16:23:54 +01:00

25 lines
609 B
HTML

{{ define "main" }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="row">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
<div class="col-md-6 d-flex align-items-stretch">
{{ partial "card-article" . }}
</div>
{{ end }}
<div class="col-12 mt-4">
{{ partial "pagination" . }}
</div>
</div>
</div>
{{ partial "blog-sidebar.html" . }}
</div>
</div>
</section>
{{ end }}