From a59eb2f8967da997000f27b2cd714095ccb4881f Mon Sep 17 00:00:00 2001 From: Oliver Obst Date: Sat, 4 Mar 2023 18:45:17 +1100 Subject: [PATCH] added support for external links in main menu --- layouts/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index d66bf9e..a3bf99f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,6 +2,8 @@ {{ $headless := .Site.GetPage "/homepage" }} {{ $sections := $headless.Resources.ByType "page" }} {{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }} +{{ $filtered := where $sections "Params.external" "==" nil }} +