From 3c6957467fc401648369905efae98c0a228af752 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 19 Mar 2023 18:57:48 +0100 Subject: Update project link display --- themes/conspiracy/layouts/_default/single.html | 7 +++++++ themes/conspiracy/layouts/index.html | 17 ++++++++++------- themes/conspiracy/layouts/partials/card.html | 2 +- themes/conspiracy/layouts/partials/footer.html | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) (limited to 'themes/conspiracy/layouts') diff --git a/themes/conspiracy/layouts/_default/single.html b/themes/conspiracy/layouts/_default/single.html index 9f3ff8d..231daf7 100644 --- a/themes/conspiracy/layouts/_default/single.html +++ b/themes/conspiracy/layouts/_default/single.html @@ -7,6 +7,13 @@ {{- end }}
+ {{- if .Params.external_links }} + + {{- end }} {{ .Content }}
{{- end }} 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 @@ {{- end }} -

Recently updated projects

- {{ range first 2 (where site.RegularPages "Section" "==" "projects") }} - {{ partial "card.html" . }} - {{- end }} + {{- range site.Params.homepage_categories }} +

{{ .title }}

+ {{- range first .count (where site.RegularPages "Section" "==" .key) }} + {{ partial "card.html" . }} + {{- end }} -

Blog

- {{ range (where site.RegularPages "Section" "==" "blog") }} - {{ partial "card.html" . }} + {{- end }} {{- end }} diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html index 167a9d5..65ea2e7 100644 --- a/themes/conspiracy/layouts/partials/card.html +++ b/themes/conspiracy/layouts/partials/card.html @@ -10,7 +10,7 @@ {{- if .Params.external_links }} {{- end }} diff --git a/themes/conspiracy/layouts/partials/footer.html b/themes/conspiracy/layouts/partials/footer.html index 6071d43..adf7aee 100644 --- a/themes/conspiracy/layouts/partials/footer.html +++ b/themes/conspiracy/layouts/partials/footer.html @@ -1,6 +1,6 @@ -- cgit