From c66b356b5dda18cf968c3849e4ca96794ee1c3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Cola=C3=A7o?= Date: Thu, 24 Oct 2024 23:57:00 +0200 Subject: [PATCH] feat: Allow injection of custom code in the html head --- layouts/partials/head.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 891faa3..4cb3a92 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -24,6 +24,10 @@ font-size: 18px; } - {{ if .Site.Params.analytics.code }} - {{ .Site.Params.analytics.code }} - {{ end }} +{{ if .Site.Params.analytics.code }} + {{ .Site.Params.analytics.code }} +{{ end }} + +{{ if .Site.Params.customHeadCode }} + {{ .Site.Params.customHeadCode | safeHTML }} +{{ end }}