From 2c17fbcdf8ea36d9d10dba243db94de85575e8ed Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Oct 2023 09:02:20 +0200 Subject: chore: Copy theme layouts --- layouts/index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 layouts/index.html (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..7f31f64 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{ if site.Params.isSinglePage }} +{{ partial "single/homepage" . }} +{{ else }} +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ $paginator := .Paginate $pages }} +
+

Latest Posts

+
+
+{{ range $index, $pages := $paginator.Pages }} + {{ partial "list/default" . }} +{{ end }} +
+{{ partial "list/components/pagination" . }} +{{ end }} +{{ end }} \ No newline at end of file -- cgit v1.3