From 4b148842c1a89f838d573614b560e6a9435f3b6b Mon Sep 17 00:00:00 2001 From: jannes Date: Thu, 10 Oct 2024 10:19:36 -0600 Subject: [PATCH] feat: support user-supplied html If theme user creates a "custom-head.html" partial, it will be included at the end of the section. --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 61bf215..115b71d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -47,4 +47,8 @@ {{ template "_internal/google_analytics.html" . }} {{- end -}} + {{/* Extend head with user supplied partial */}} + {{ if templates.Exists "partials/custom-head.html" }} + {{ partial "custom-head.html" . }} + {{ end }}