From bc1a3aed0a6df0262a89f55428127491fd865dd0 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sun, 3 Jan 2021 21:09:16 +0100 Subject: [PATCH] added before and after header injects --- README.md | 2 ++ layouts/partials/header.html | 2 ++ layouts/partials/inject/header-after.html | 1 + layouts/partials/inject/header-before.html | 1 + 4 files changed, 6 insertions(+) create mode 100644 layouts/partials/inject/header-after.html create mode 100644 layouts/partials/inject/header-before.html diff --git a/README.md b/README.md index eea3a93..6303490 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,8 @@ Ficurinia supports injecting custom content into the theme. There are several fi | `layouts/partials/inject/content-before.html` | Before a post or page content | | `layouts/partials/inject/footer.html` | At the beginning of the footer | | `layouts/partials/inject/head.html` | Before closing the `head` tag | +| `layouts/partials/inject/header-after.html` | Before closing the header | +| `layouts/partials/inject/header-before.html` | At the beginning of the header | # Does *Ficurinia* mean anything? diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3d11023..8a4ffdd 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,5 @@
+ {{- partial "inject/header-before" -}}
@@ -27,4 +28,5 @@ {{- partial "nerdlink" . -}} {{ end }}
+ {{- partial "inject/header-after" -}}
diff --git a/layouts/partials/inject/header-after.html b/layouts/partials/inject/header-after.html new file mode 100644 index 0000000..4589529 --- /dev/null +++ b/layouts/partials/inject/header-after.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/header-before.html b/layouts/partials/inject/header-before.html new file mode 100644 index 0000000..b1a7c16 --- /dev/null +++ b/layouts/partials/inject/header-before.html @@ -0,0 +1 @@ +