summaryrefslogtreecommitdiff
path: root/layouts/_default/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r--layouts/_default/home.html31
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