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 -}} -