diff options
author | Corné Haasjes <c.haasjes@lumc.nl> | 2025-04-01 19:38:31 +0200 |
---|---|---|
committer | Corné Haasjes <c.haasjes@lumc.nl> | 2025-04-01 19:38:31 +0200 |
commit | b8715b0cf2a4a371c45703704da9d8232f6cf907 (patch) | |
tree | e92b292c8ba5a1d55bf2918bbedc4c9698ebd796 /layouts/partials/head.html | |
parent | 9794243a3ff85aae024d6a8f7439702cc66f3f73 (diff) |
Add support for hooks in layouts/partials/hooks
Supported hooks:
- head_start
- head_end
- body_end
- footer_start
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> +{{/* Head start hook */}} +{{ partial "functions/get_hook.html" (dict "hook" "head_start" "context" .) }} + {{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }} <link rel="icon" type="image/ico" href="{{ $faviconPath }}/favicon.ico"> @@ -46,3 +49,5 @@ {{ end }} {{ end }} +{{/* Head end hook */}} +{{ partial "functions/get_hook.html" (dict "hook" "head_end" "context" .) }} |