summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/index.html')
-rw-r--r--themes/conspiracy/layouts/index.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html
index 28b5cc5..ab68f27 100644
--- a/themes/conspiracy/layouts/index.html
+++ b/themes/conspiracy/layouts/index.html
@@ -9,14 +9,17 @@
</div>
{{- end }}
- <h2>Recently updated projects</h2>
- {{ range first 2 (where site.RegularPages "Section" "==" "projects") }}
- {{ partial "card.html" . }}
- {{- end }}
+ {{- range site.Params.homepage_categories }}
+ <h2>{{ .title }}</h2>
+ {{- range first .count (where site.RegularPages "Section" "==" .key) }}
+ {{ partial "card.html" . }}
+ {{- end }}
- <h2>Blog</h2>
- {{ range (where site.RegularPages "Section" "==" "blog") }}
- {{ partial "card.html" . }}
+ <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 }}