From 3a72268665dda3a14c033d96205fe7d916c1a57d Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Sun, 6 Nov 2022 10:44:05 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20show=20sections=20on=20the=20ma?= =?UTF-8?q?in=20page,=20only=20products?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 199ffeb..9122d58 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -167,6 +167,7 @@

{{ .title | markdownify }}

{{ end }} {{ range first 6 (where site.RegularPages "Type" "products") }} + {{ if not .IsSection }} {{ $image := "" }} {{ if .Params.Image }} {{ $image = .Params.Image | absURL }} @@ -200,6 +201,7 @@

{{ .title | markdownify }}

{{ end }} + {{ end }}