From 82fdcd672008651dd76f8b1f506f534145d5cc7a Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 13 Oct 2023 03:12:43 +0200 Subject: Striped sections --- layouts/index.html | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index b75e6f8..cf04902 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,17 +1,22 @@ {{ define "hero" }} -{{ partial "hero.html" . }} + {{ partial "hero.html" . }} {{ end }} {{ define "main" }} - -{{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} -{{ range first 4 .Pages.ByPublishDate.Reverse }} -{{ partial "post.html" . }} -{{ end }} + -
- - See all -
-{{ end }} +
+ {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} +
+
+ {{ range first 3 .Pages.ByPublishDate.Reverse }} + {{ partial "post.html" . }} + {{ end }} +
+ + See all +
+
+
+ {{ end }} {{ end }} -- cgit v1.2.3