From 7db628dc7b899b5e3f327f6f492d437d72bfdf42 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 15 Oct 2023 18:10:02 +0200 Subject: Section heading in home page --- layouts/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index cf04902..f787152 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,9 +6,12 @@
- {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} + {{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }}
-
+
+

+ {{ .Title }} +

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