added before and after header injects
This commit is contained in:
parent
5e416d847c
commit
bc1a3aed0a
|
@ -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/content-before.html` | Before a post or page content |
|
||||||
| `layouts/partials/inject/footer.html` | At the beginning of the footer |
|
| `layouts/partials/inject/footer.html` | At the beginning of the footer |
|
||||||
| `layouts/partials/inject/head.html` | Before closing the `head` tag |
|
| `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?
|
# Does *Ficurinia* mean anything?
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<header>
|
<header>
|
||||||
|
{{- partial "inject/header-before" -}}
|
||||||
<div id="titleContainer">
|
<div id="titleContainer">
|
||||||
<img src='{{ .Site.Params.Logo | default "/img/icon.svg" }}' />
|
<img src='{{ .Site.Params.Logo | default "/img/icon.svg" }}' />
|
||||||
<div>
|
<div>
|
||||||
|
@ -27,4 +28,5 @@
|
||||||
{{- partial "nerdlink" . -}}
|
{{- partial "nerdlink" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{- partial "inject/header-after" -}}
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<!-- This code will be injected before closing the header -->
|
|
@ -0,0 +1 @@
|
||||||
|
<!-- This code will be injected just after opening the header -->
|
Loading…
Reference in New Issue