Add page-body-first, page-body-last includes

master
Will Faught 5 months ago
parent 26be91eccd
commit 377b74d0e4

@ -772,6 +772,8 @@ Files can be included in many places in HTML.
| `layouts/partials/paige/body-last.html` | The end of the body tag |
| `layouts/partials/paige/head-first.html` | The beginning of the head tag |
| `layouts/partials/paige/head-last.html` | The end of the head tag |
| `layouts/partials/paige/page-body-first.html` | The beginning of the page body |
| `layouts/partials/paige/page-body-last.html` | The end of the page body |
| `layouts/partials/paige/page-first.html` | The beginning of the page tag |
| `layouts/partials/paige/page-footer-first.html` | The beginning of the page footer tag |
| `layouts/partials/paige/page-footer-last.html` | The end of the page footer tag |

@ -49,7 +49,11 @@
{{ partial "paige/page-header.html" $page }}
{{ with $content }}
<main class="mw-100" id="paige-page-content" {{ if $microdata }} itemprop="articleBody" {{ end }}>{{ . | safeHTML }}</main>
<main class="mw-100" id="paige-page-content" {{ if $microdata }} itemprop="articleBody" {{ end }}>
{{ partial "paige/func-include.html" (dict "name" "page-body-first%s.html" "page" $page) }}
{{ . | safeHTML }}
{{ partial "paige/func-include.html" (dict "name" "page-body-last%s.html" "page" $page) }}
</main>
{{ end }}
{{ partial "paige/page-footer.html" $page }}

Loading…
Cancel
Save