From 377b74d0e4c823dcc7af47ca1445ae28bb804cee Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 10 Feb 2025 20:56:17 -0800 Subject: [PATCH] Add page-body-first, page-body-last includes --- README.md | 2 ++ layouts/partials/paige/page.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5c47f5e..f270e206 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 2914c527..35e169f8 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -49,7 +49,11 @@ {{ partial "paige/page-header.html" $page }} {{ with $content }} -
{{ . | safeHTML }}
+
+ {{ 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) }} +
{{ end }} {{ partial "paige/page-footer.html" $page }}