diff options
author | Frieder Griesshammer <frieder.griesshammer@der-beweis.de> | 2022-10-09 20:17:54 +0300 |
---|---|---|
committer | Frieder Griesshammer <frieder.griesshammer@der-beweis.de> | 2022-10-09 20:29:13 +0300 |
commit | a05a8f805add039f6d0005491c5fb820e374af92 (patch) | |
tree | ea259d95f8a35ede42ce675cf4ab5fcf626eef23 | |
parent | f94031279bc1b54da6a26cd91f793ee058e16b22 (diff) |
Add empty partial to allow placing things into html head
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b676e5..8adfb85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ and this project adheres to - Introduced `showRssLink` setting to control display of RSS link in the footer. Thanks [@ivan3bx](https://github.com/ivan3bx) for the idea. +- `partials/head.html` - It may be overwritten to place any content into + the `<head/>` of the build output. ### Changed diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4225c86..7d1f0c4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -41,6 +41,7 @@ {{- end }} {{- $script := resources.Get "script.js" | resources.Fingerprint }} <script defer src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script> + {{ partial "head.html" . }} </head> <body> <div class="pure-g"> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..23ffa54 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1 @@ +{{- /* overwrite this partial to add content into the <head/> of the build output */}} |