From b8715b0cf2a4a371c45703704da9d8232f6cf907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Haasjes?= Date: Tue, 1 Apr 2025 19:38:31 +0200 Subject: Add support for hooks in layouts/partials/hooks Supported hooks: - head_start - head_end - body_end - footer_start --- layouts/partials/head.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5eea693..f62f983 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,9 @@ +{{/* Head start hook */}} +{{ partial "functions/get_hook.html" (dict "hook" "head_start" "context" .) }} + {{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }} @@ -46,3 +49,5 @@ {{ end }} {{ end }} +{{/* Head end hook */}} +{{ partial "functions/get_hook.html" (dict "hook" "head_end" "context" .) }} -- cgit v1.2.3