From c4819fcc3463d5fc35f4e618b933c5b2d9f871e5 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 22 Feb 2023 10:46:24 +0100 Subject: [PATCH] feat: Suppression des contenus vide --- layouts/associations/list.html | 2 ++ layouts/associations/single.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layouts/associations/list.html b/layouts/associations/list.html index bf8cd68..21bc5b9 100644 --- a/layouts/associations/list.html +++ b/layouts/associations/list.html @@ -7,9 +7,11 @@
{{ block "list" . }} {{ range sort .Pages "Permalink" }} + {{ if .Params.bureau }}

{{ .RenderString .Title }}

+ {{ end }} {{ end }} {{ end }}
diff --git a/layouts/associations/single.html b/layouts/associations/single.html index b680e28..be1b70e 100644 --- a/layouts/associations/single.html +++ b/layouts/associations/single.html @@ -7,6 +7,7 @@ {{ end }}
+ {{ if or .Params.mail .Params.telephone .Params.site .Params.facebook }}

Liens :

+ {{ end }} {{ if isset .Params "bureau" }}