gcg-website/layouts/_default/list.html
Denys Konovalov 763a040751
All checks were successful
website-main / prod-build (push) Successful in 1m20s
website-main / test-build (push) Successful in 55s
website-main / auto-rebuild (push) Has been skipped
website-dev / dev-build (push) Successful in 58s
refactor: switch render templates to partials
2023-07-15 15:50:10 +02:00

25 lines
621 B
HTML

{{ define "main" }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-8 order-2 order-lg-1">
<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" . }}
</div>
{{ end }}
<div class="col-12 mt-4">
{{ partial "pagination" . }}
</div>
</div>
</div>
{{ partial "blog-sidebar.html" . }}
</div>
</div>
</section>
{{ end }}