From 069a59202f97433ccd28d9af3ee30d3fd1b94781 Mon Sep 17 00:00:00 2001 From: Eamon Caddigan Date: Sun, 23 Jul 2023 14:47:59 -0700 Subject: [PATCH] feat: Added `hook_head_end.html` to head This makes it easier for theme users to add elements to the head. A file located at layouts/partials/hook_head_end.html in the site folder will override the (empty) `hook_head_end.html` in the theme. --- layouts/partials/head.html | 1 + layouts/partials/hook_head_end.html | 0 2 files changed, 1 insertion(+) create mode 100644 layouts/partials/hook_head_end.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1454f12..b2eceb4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,4 +9,5 @@ {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title }} + {{ partial "hook_head_end.html" . }} diff --git a/layouts/partials/hook_head_end.html b/layouts/partials/hook_head_end.html new file mode 100644 index 0000000..e69de29