Add page-first, page-last includes

master
Will Faught 5 months ago
parent ab1331fe8b
commit c179fc5bce

@ -772,10 +772,12 @@ Files can be included in many places in HTML.
| `layouts/partials/paige/body-last.html` | The end of the body tag | | `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-first.html` | The beginning of the head tag |
| `layouts/partials/paige/head-last.html` | The end of the head tag | | `layouts/partials/paige/head-last.html` | The end of the head tag |
| `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-first.html` | The beginning of the page footer tag |
| `layouts/partials/paige/page-footer-last.html` | The end of the page footer tag | | `layouts/partials/paige/page-footer-last.html` | The end of the page footer tag |
| `layouts/partials/paige/page-header-first.html` | The beginning of the page header tag | | `layouts/partials/paige/page-header-first.html` | The beginning of the page header tag |
| `layouts/partials/paige/page-header-last.html` | The end of the page header tag | | `layouts/partials/paige/page-header-last.html` | The end of the page header tag |
| `layouts/partials/paige/page-last.html` | The end of the page tag |
| `layouts/partials/paige/site-first.html` | The beginning of the main tag | | `layouts/partials/paige/site-first.html` | The beginning of the main tag |
| `layouts/partials/paige/site-last.html` | The end of the main tag | | `layouts/partials/paige/site-last.html` | The end of the main tag |
| `layouts/partials/paige/site-footer-first.html` | The beginning of the site footer tag | | `layouts/partials/paige/site-footer-first.html` | The beginning of the site footer tag |

@ -45,6 +45,7 @@
{{ $class = delimit ($class | uniq | sort) " " }} {{ $class = delimit ($class | uniq | sort) " " }}
<article class="align-items-center d-flex flex-column {{ $class }}" id="paige-page"> <article class="align-items-center d-flex flex-column {{ $class }}" id="paige-page">
{{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }}
{{ partial "paige/page-header.html" $page }} {{ partial "paige/page-header.html" $page }}
{{ with $content }} {{ with $content }}
@ -52,4 +53,5 @@
{{ end }} {{ end }}
{{ partial "paige/page-footer.html" $page }} {{ partial "paige/page-footer.html" $page }}
{{ partial "paige/func-include.html" (dict "name" "page-last%s.html" "page" $page) }}
</article> </article>

Loading…
Cancel
Save