diff options
author | jaseg <git@jaseg.de> | 2025-06-30 14:48:34 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2025-06-30 14:48:34 +0200 |
commit | a324ba7b649840c16d365b757b19db2849991f11 (patch) | |
tree | a9cd16a30404f22a6094b0fe664d392af1cf2ad0 /themes/conspiracy/layouts/home.html | |
parent | bce789de7b4ab2d0d2c58e14b8e221ed5817c09d (diff) | |
download | blog-a324ba7b649840c16d365b757b19db2849991f11.tar.gz blog-a324ba7b649840c16d365b757b19db2849991f11.tar.bz2 blog-a324ba7b649840c16d365b757b19db2849991f11.zip |
WIP
Diffstat (limited to 'themes/conspiracy/layouts/home.html')
-rw-r--r-- | themes/conspiracy/layouts/home.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/home.html b/themes/conspiracy/layouts/home.html new file mode 100644 index 0000000..f865cd3 --- /dev/null +++ b/themes/conspiracy/layouts/home.html @@ -0,0 +1,25 @@ +{{- define "main" }} + <header> + <h1>{{ .Title }}</h1> + </header> + <main class="cards"> + {{- if .Content }} + <div class="intro"> + {{ .Content }} + </div> + {{- end }} + + {{ range $config := site.Params.homepage_categories }} + <h2>{{ .title }}</h2> + {{ range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }} + {{ partial "card.html" $entry }} + {{ end }} + + <div class="pagination-links"> + {{ with site.GetPage (printf "/%s" .key) }} + <a href="{{ .RelPermalink }}">See more<span class="arrow-right"></span></a> + {{ end }} + </div> + {{ end }} + </main> +{{- end }} |