summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/home.html')
-rw-r--r--themes/conspiracy/layouts/home.html25
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 }}