#150, Add content-before and content-after inject partials
This commit is contained in:
parent
5cba28f865
commit
5d7f257e30
4 changed files with 11 additions and 7 deletions
16
README.md
16
README.md
|
@ -214,13 +214,15 @@ bookComments = true
|
||||||
|
|
||||||
There are few empty partials you can override in `layouts/partials/`
|
There are few empty partials you can override in `layouts/partials/`
|
||||||
|
|
||||||
| Partial | Placement |
|
| Partial | Placement |
|
||||||
| ----------------------------------------------- | -------------------------------------- |
|
| -------------------------------------------------- | -------------------------------------- |
|
||||||
| `layouts/partials/docs/inject/head.html` | Before closing `<head>` tag |
|
| `layouts/partials/docs/inject/head.html` | Before closing `<head>` tag |
|
||||||
| `layouts/partials/docs/inject/body.html` | Before closing `<body>` tag |
|
| `layouts/partials/docs/inject/body.html` | Before closing `<body>` tag |
|
||||||
| `layouts/partials/docs/inject/footer.html` | After page content |
|
| `layouts/partials/docs/inject/footer.html` | After page footer content |
|
||||||
| `layouts/partials/docs/inject/menu-before.html` | At the beginning of `<nav>` menu block |
|
| `layouts/partials/docs/inject/menu-before.html` | At the beginning of `<nav>` menu block |
|
||||||
| `layouts/partials/docs/inject/menu-after.html` | At the end of `<nav>` menu block |
|
| `layouts/partials/docs/inject/menu-after.html` | At the end of `<nav>` menu block |
|
||||||
|
| `layouts/partials/docs/inject/content-before.html` | Before page content |
|
||||||
|
| `layouts/partials/docs/inject/content-after.html` | After page content |
|
||||||
|
|
||||||
### Extra Customisation
|
### Extra Customisation
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
{{ template "header" . }} <!-- Mobile layout header -->
|
{{ template "header" . }} <!-- Mobile layout header -->
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
{{ partial "docs/inject/content-before" . }}
|
||||||
{{ template "main" . }} <!-- Page Content -->
|
{{ template "main" . }} <!-- Page Content -->
|
||||||
|
{{ partial "docs/inject/content-after" . }}
|
||||||
|
|
||||||
<footer class="book-footer">
|
<footer class="book-footer">
|
||||||
{{ template "footer" . }} <!-- Footer under page content -->
|
{{ template "footer" . }} <!-- Footer under page content -->
|
||||||
|
|
0
layouts/partials/docs/inject/content-after.html
Normal file
0
layouts/partials/docs/inject/content-after.html
Normal file
0
layouts/partials/docs/inject/content-before.html
Normal file
0
layouts/partials/docs/inject/content-before.html
Normal file
Loading…
Reference in a new issue