diff options
author | jaseg <git@jaseg.de> | 2023-03-19 18:57:48 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-03-19 18:57:48 +0100 |
commit | 3c6957467fc401648369905efae98c0a228af752 (patch) | |
tree | 089c356429fdcfc4027c0f7c1ac50f6d1cf9d095 /themes/conspiracy/layouts/index.html | |
parent | c55e92fe93ebb31ba8d46928313dc1d6a08f448d (diff) | |
download | blog-3c6957467fc401648369905efae98c0a228af752.tar.gz blog-3c6957467fc401648369905efae98c0a228af752.tar.bz2 blog-3c6957467fc401648369905efae98c0a228af752.zip |
Update project link display
Diffstat (limited to 'themes/conspiracy/layouts/index.html')
-rw-r--r-- | themes/conspiracy/layouts/index.html | 17 |
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 }} |