From 500522c3147a0f75fb35e11ee7ddf1cdca509715 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 31 Oct 2024 22:00:50 +0100 Subject: [PATCH] disabilitazione homepage per post specifici --- layouts/partials/homepage/blocks/posts_homepage.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/homepage/blocks/posts_homepage.html b/layouts/partials/homepage/blocks/posts_homepage.html index 9e54e02..51d7e46 100644 --- a/layouts/partials/homepage/blocks/posts_homepage.html +++ b/layouts/partials/homepage/blocks/posts_homepage.html @@ -1,4 +1,6 @@ {{- $pages := (where .ctx.Site.RegularPages "Section" "in" .item.sections ) }} +{{- $pages := (where $pages ".Params.homepage" "ne" false ) }} + {{- if gt (len $pages) 0 }}