added before and after header injects

This commit is contained in:
Gabriele Musco 2021-01-03 21:09:16 +01:00
parent 5e416d847c
commit bc1a3aed0a
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
4 changed files with 6 additions and 0 deletions

View File

@ -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?

View File

@ -1,4 +1,5 @@
<header>
{{- partial "inject/header-before" -}}
<div id="titleContainer">
<img src='{{ .Site.Params.Logo | default "/img/icon.svg" }}' />
<div>
@ -27,4 +28,5 @@
{{- partial "nerdlink" . -}}
{{ end }}
</div>
{{- partial "inject/header-after" -}}
</header>

View File

@ -0,0 +1 @@
<!-- This code will be injected before closing the header -->

View File

@ -0,0 +1 @@
<!-- This code will be injected just after opening the header -->