summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-05-21 19:16:01 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-05-21 19:16:01 +0200
commit90470615876b9db30d14e92ef1282fe25f44a23c (patch)
treeb133122e7fbe610d482ce31b7ce0c86c768f76b6 /layouts
parent3d26384572f52ad1a554e09cb707b40a519b7ddc (diff)
Minor
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/home.html31
-rw-r--r--layouts/_default/list.html39
2 files changed, 38 insertions, 32 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
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" . }}
+<div class="list-container">
-<h1>{{ .Title }}</h1>
-{{ .Content }}
+ {{ partial "breadcrumbs.html" . }}
-{{ $tagsPage := eq .Title "Tags"}}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
-{{ $paginationSize := 1}}
-{{ if (gt .Site.Params.paginationSize 0) }}
-{{ $paginationSize = .Site.Params.paginationSize }}
-{{ end }}
+ {{ $tagsPage := eq .Title "Tags"}}
-{{ $paginator := .Paginate (.Pages) $paginationSize }}
+ {{ $paginationSize := 1}}
+ {{ if (gt .Site.Params.paginationSize 0) }}
+ {{ $paginationSize = .Site.Params.paginationSize }}
+ {{ end }}
-{{ range $index, $page := $paginator.Pages }}
+ {{ $paginator := .Paginate (.Pages) $paginationSize }}
-{{ if $tagsPage }}
-{{ partial "tag-entry.html" $page}}
-{{ else }}
-{{ partial "post-entry.html" $page}}
-{{ end }}
+ {{ range $index, $page := $paginator.Pages }}
-{{ end }}
+ {{ if $tagsPage }}
+ {{ partial "tag-entry.html" $page}}
+ {{ else }}
+ {{ partial "post-entry.html" $page}}
+ {{ end }}
-{{ partial "pagination-controls.html" $paginator}}
+ {{ end }}
-{{ end }} \ No newline at end of file
+ {{ partial "pagination-controls.html" $paginator}}
+
+</div>
+{{ end }}