diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-02 09:02:20 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-02 09:02:20 +0200 |
| commit | 2c17fbcdf8ea36d9d10dba243db94de85575e8ed (patch) | |
| tree | 6609bbe9837d851f3d0be160f025285606465dc4 /layouts/index.html | |
| parent | c6ef2fd7aeff28abfd4ec372262de3ecd4684c04 (diff) | |
chore: Copy theme layouts
Diffstat (limited to 'layouts/index.html')
| -rw-r--r-- | layouts/index.html | 17 |
1 files changed, 17 insertions, 0 deletions
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 }} +<div class="flex flex-col gap-1"> +<h3 class="text-2xl font-extrabold">Latest Posts</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 }} +{{ end }}
\ No newline at end of file |
