diff options
author | Francesco <tomaselli.fr@gmail.com> | 2024-05-21 19:16:01 +0200 |
---|---|---|
committer | Francesco <tomaselli.fr@gmail.com> | 2024-05-21 19:16:01 +0200 |
commit | 90470615876b9db30d14e92ef1282fe25f44a23c (patch) | |
tree | b133122e7fbe610d482ce31b7ce0c86c768f76b6 /layouts/_default/home.html | |
parent | 3d26384572f52ad1a554e09cb707b40a519b7ddc (diff) |
Minor
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r-- | layouts/_default/home.html | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 5273fa0..4c8ebd7 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -34,25 +34,28 @@ {{ if .Site.Params.homeCollection }} -{{ with .Site.Params.homeCollectionTitle}} -<h1> {{ . }} </h1> -{{ end }} +<div class="list-container"> + {{ with .Site.Params.homeCollectionTitle}} + <h1> {{ . }} </h1> + {{ end }} -{{ $pages := where .Site.RegularPages "Section" .Site.Params.homeCollection }} + {{ $pages := where .Site.RegularPages "Section" .Site.Params.homeCollection + }} -{{ $paginationSize := 1}} -{{ if (gt .Site.Params.paginationSize 0) }} -{{ $paginationSize = .Site.Params.paginationSize }} -{{ end }} + {{ $paginationSize := 1}} + {{ if (gt .Site.Params.paginationSize 0) }} + {{ $paginationSize = .Site.Params.paginationSize }} + {{ end }} -{{ $paginator := .Paginate $pages $paginationSize }} + {{ $paginator := .Paginate $pages $paginationSize }} -{{ range $index, $page := $paginator.Pages }} -{{ partial "post-entry.html" $page}} -{{ end }} + {{ range $index, $page := $paginator.Pages }} + {{ partial "post-entry.html" $page}} + {{ end }} -{{ partial "pagination-controls.html" $paginator}} + {{ partial "pagination-controls.html" $paginator}} -{{ end }} + {{ end }} +</div> {{ end }}
\ No newline at end of file |