From ba9c2c6923f5a9dc6a2464f9f77282f68d185a31 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 11 Jun 2023 13:38:02 +0200 Subject: [PATCH] Alleen sectie gerelateerde pagina's tonen als ze er ook daadwerkelijk zijn --- themes/nluug/layouts/_default/baseof.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/themes/nluug/layouts/_default/baseof.html b/themes/nluug/layouts/_default/baseof.html index 856886c..0cd153a 100644 --- a/themes/nluug/layouts/_default/baseof.html +++ b/themes/nluug/layouts/_default/baseof.html @@ -17,16 +17,18 @@ {{ if isset .Params "show_child_pages" }} {{ if eq .Params.show_child_pages true }} -
-

Gerelateerde pagina's

- -
+ {{ if (gt (.Pages | len) 0) }} +
+

Gerelateerde pagina's

+ +
+ {{ end }} {{ end }} {{ end }}