diff --git a/assets/css/main.css b/assets/css/main.css index 0108413..9c350ee 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -201,11 +201,15 @@ footer a { color: var(--content-secondary); } +.list-container { + padding-bottom: 1rem; +} + .pagination { display: flex; align-items: center; margin-top: 1rem; - margin-bottom: 1rem; + margin-bottom: 0rem; justify-content: center; } 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}} -

{{ . }}

-{{ end }} +
+ {{ with .Site.Params.homeCollectionTitle}} +

{{ . }}

+ {{ 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 }} +
{{ end }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5cf6c81..9da804f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,29 +1,32 @@ {{ define "main" }} -{{ partial "breadcrumbs.html" . }} +
-

{{ .Title }}

-{{ .Content }} + {{ partial "breadcrumbs.html" . }} -{{ $tagsPage := eq .Title "Tags"}} +

{{ .Title }}

+ {{ .Content }} -{{ $paginationSize := 1}} -{{ if (gt .Site.Params.paginationSize 0) }} -{{ $paginationSize = .Site.Params.paginationSize }} + {{ $tagsPage := eq .Title "Tags"}} + + {{ $paginationSize := 1}} + {{ if (gt .Site.Params.paginationSize 0) }} + {{ $paginationSize = .Site.Params.paginationSize }} + {{ end }} + + {{ $paginator := .Paginate (.Pages) $paginationSize }} + + {{ range $index, $page := $paginator.Pages }} + + {{ if $tagsPage }} + {{ partial "tag-entry.html" $page}} + {{ else }} + {{ partial "post-entry.html" $page}} + {{ end }} + + {{ end }} + + {{ partial "pagination-controls.html" $paginator}} + +
{{ end }} - -{{ $paginator := .Paginate (.Pages) $paginationSize }} - -{{ range $index, $page := $paginator.Pages }} - -{{ if $tagsPage }} -{{ partial "tag-entry.html" $page}} -{{ else }} -{{ partial "post-entry.html" $page}} -{{ end }} - -{{ end }} - -{{ partial "pagination-controls.html" $paginator}} - -{{ end }} \ No newline at end of file