From c179fc5bced927ad4501baba6bb5a3d03cff8015 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 10 Feb 2025 20:53:18 -0800 Subject: [PATCH] Add page-first, page-last includes --- README.md | 2 ++ layouts/partials/paige/page.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 3a7922e4..932e5f37 100644 --- a/README.md +++ b/README.md @@ -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/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-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 | | `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-last.html` | The end of the page 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-footer-first.html` | The beginning of the site footer tag | diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 4296aa73..2914c527 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -45,6 +45,7 @@ {{ $class = delimit ($class | uniq | sort) " " }}
+ {{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }} {{ partial "paige/page-header.html" $page }} {{ with $content }} @@ -52,4 +53,5 @@ {{ end }} {{ partial "paige/page-footer.html" $page }} + {{ partial "paige/func-include.html" (dict "name" "page-last%s.html" "page" $page) }}