aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-09-29 19:17:13 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-10-01 07:51:11 +0200
commit4c41e477e13d37e187c8de4225c7e8056bd9ed28 (patch)
tree33a7b51a0ed2c2ae207fc8f89f1454ccb77596a5 /layouts/_default/list.html
parent4720b07e9f18915cf1f6466245a92dedd11fdc55 (diff)
Internalise theme
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html27
1 files changed, 20 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 577852f..d366d53 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,17 +1,30 @@
{{ define "main" }}
+
{{ $pages := .Pages }}
-{{ $paginator := .Paginate $pages }}
+{{ $paginator := .Paginate $pages }}
+
<div class="flex flex-col gap-1">
-<h1 class="text-2xl font-extrabold">{{ if .Params.header }}{{ .Params.header }}{{ else }}{{ .Title }}{{ end }}</h1>
-{{ if .Content }}<p class="content text-lg text-gray-900">{{ .Content }}</p>{{ end }}
+ <h1 class="text-2xl font-extrabold">
+ {{ if .Params.header }}
+ {{ .Params.header }}
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
+ </h1>
+
+ {{ with .Content }}
+ {{ . }}
+ {{ end }}
</div>
-<section class="py-10 flex flex-col gap-10 ">
-{{ range $index, $pages := $paginator.Pages }}
+<section class="flex flex-col gap-10">
+ {{ range $index, $pages := $paginator.Pages }}
{{ partial "list/default" . }}
-{{ end }}
+ {{ end }}
</section>
-{{ partial "list/components/pagination" . }}
+{{ if gt $paginator.TotalPages 1 }}
+ {{ partial "list/pagination" . }}
+{{ end }}
{{ end }} \ No newline at end of file