From cb1d03ea430c4afd3175d740d79832ddde469577 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sat, 28 Dec 2024 05:36:38 +0100 Subject: homepage shows only sections with entries --- layouts/index.html | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 905bb07..fb866ad 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,25 +3,27 @@ {{ end }} {{ define "main" }} - {{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }} -
-
-

- {{ .Title }} -

- {{ range first 3 .Pages.ByPublishDate.Reverse }} - {{ partial "post.html" . }} - {{ end }} -
- - {{ T "see_all" | humanize }} +
+

+ {{ .Title }} +

+ {{ range first 3 .Pages.ByPublishDate.Reverse }} + {{ partial "post.html" . }} + {{ end }} +
-
+ {{ end }} {{ end }} {{ end }} -- cgit v1.2.3