diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-23 13:29:58 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-23 13:29:58 +0100 |
commit | 5d7f257e303d581a4b75f3feb12940a172ec89ed (patch) | |
tree | dc137ede5a336445b85433741da2bd5174feea8d | |
parent | 5cba28f865dda37570b393739b6fce335a8b0146 (diff) |
#150, Add content-before and content-after inject partials
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/inject/content-after.html | 0 | ||||
-rw-r--r-- | layouts/partials/docs/inject/content-before.html | 0 |
4 files changed, 11 insertions, 7 deletions
@@ -214,13 +214,15 @@ bookComments = true There are few empty partials you can override in `layouts/partials/` -| Partial | Placement | -| ----------------------------------------------- | -------------------------------------- | -| `layouts/partials/docs/inject/head.html` | Before closing `<head>` tag | -| `layouts/partials/docs/inject/body.html` | Before closing `<body>` tag | -| `layouts/partials/docs/inject/footer.html` | After page content | -| `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 | +| Partial | Placement | +| -------------------------------------------------- | -------------------------------------- | +| `layouts/partials/docs/inject/head.html` | Before closing `<head>` tag | +| `layouts/partials/docs/inject/body.html` | Before closing `<body>` tag | +| `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-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 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a9c4da1..95524a0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,7 +18,9 @@ {{ template "header" . }} <!-- Mobile layout header --> </header> + {{ partial "docs/inject/content-before" . }} {{ template "main" . }} <!-- Page Content --> + {{ partial "docs/inject/content-after" . }} <footer class="book-footer"> {{ template "footer" . }} <!-- Footer under page content --> diff --git a/layouts/partials/docs/inject/content-after.html b/layouts/partials/docs/inject/content-after.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/content-after.html diff --git a/layouts/partials/docs/inject/content-before.html b/layouts/partials/docs/inject/content-before.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/docs/inject/content-before.html |