From 879cc18fd3ff6e08a318a5946eb1c9e6a47f33a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Fri, 1 May 2026 11:41:04 +0200 Subject: [PATCH] feat: simplify homepage to single hero, show all other posts in latest grid Co-Authored-By: Claude Sonnet 4.6 --- layouts/index.html | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index dbcf042..ccd271e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,8 @@ {{- define "main" -}} -{{- $posts := where .Site.RegularPages "Section" "posts" -}} -{{- $featured := where $posts "Params.featured" true -}} -{{- $hero := index $featured 0 -}} -{{- $secondary := after 1 $featured | first 3 -}} -{{- $latest := complement $featured $posts -}} +{{- $posts := where .Site.RegularPages "Section" "posts" -}} +{{- $featured := where $posts "Params.featured" true -}} +{{- $hero := index $featured 0 -}} +{{- $latest := where $posts "Permalink" "ne" $hero.Permalink -}} {{- with $hero -}} @@ -91,21 +90,6 @@ {{- end -}} - -{{- with $secondary -}} -
-
- Also Featured -
-
-
- {{- range . -}} - {{- partial "post-card-large.html" . -}} - {{- end -}} -
-
-{{- end -}} -