aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.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/index.html
parent4720b07e9f18915cf1f6466245a92dedd11fdc55 (diff)
Internalise theme
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html22
1 files changed, 7 insertions, 15 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 7f31f64..7cf7b9d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,17 +1,9 @@
-{{ define "main" }}
-{{ if site.Params.isSinglePage }}
-{{ partial "single/homepage" . }}
-{{ else }}
-{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
-{{ $paginator := .Paginate $pages }}
-<div class="flex flex-col gap-1">
-<h3 class="text-2xl font-extrabold">Latest Posts</h3>
+{{ define "main" }}
+
+<div class="py-2 flex flex-col gap-1">
+ <h3 class="title-small">{{ .Title }}</h3>
</div>
-<section class="py-10 flex flex-col gap-10 ">
-{{ range $index, $pages := $paginator.Pages }}
- {{ partial "list/default" . }}
-{{ end }}
-</section>
-{{ partial "list/components/pagination" . }}
-{{ end }}
+
+ <section>{{ .Content }} </section>
+
{{ end }} \ No newline at end of file