From 3d894d14be2bb199f17f585babf0da3cfbfd8a4f Mon Sep 17 00:00:00 2001
From: Florian <26717601+florianbieser@users.noreply.github.com>
Date: Thu, 19 Jan 2023 17:07:38 +0100
Subject: [PATCH] correct behaviour even if boolean is written as string
---
layouts/partials/head.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index dc2844f..5a4f31e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,7 +4,9 @@
{{ if .Params.noindex }}
-
+ {{ if or (eq (.Param "noindex") true) (eq (.Param "noindex") "true") }}
+
+ {{ end }}
{{ end }}