From 8fd4a7aa13bd7faa77d420ab107ca7c71ed89a43 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 12 Jul 2024 18:15:09 -0700 Subject: [PATCH] Rename header-first.html to site-header-first.html --- README.md | 28 ++++++++++++------------- layouts/partials/paige/site-header.html | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a7d1fc19..408b6063 100644 --- a/README.md +++ b/README.md @@ -912,20 +912,20 @@ Body: None. ### Include -| If this file exists | It is included at | -| --------------------------------------------------- | ------------------------------- | -| `yoursite/layouts/partials/paige/body-first.html` | The beginning of the body tag | -| `yoursite/layouts/partials/paige/body-last.html` | The end of the body tag | -| `yoursite/layouts/partials/paige/footer-first.html` | The beginning of the footer tag | -| `yoursite/layouts/partials/paige/footer-last.html` | The end of the footer tag | -| `yoursite/layouts/partials/paige/head-first.html` | The beginning of the head tag | -| `yoursite/layouts/partials/paige/head-last.html` | The end of the head tag | -| `yoursite/layouts/partials/paige/header-first.html` | The beginning of the header tag | -| `yoursite/layouts/partials/paige/header-last.html` | The end of the header tag | -| `yoursite/layouts/partials/paige/main-first.html` | The beginning of the main tag | -| `yoursite/layouts/partials/paige/main-last.html` | The end of the main tag | -| `yoursite/layouts/partials/paige/style-first.css` | The beginning of the style tag | -| `yoursite/layouts/partials/paige/style-last.css` | The end of the style tag | +| If this file exists | It is included at | +| ---------------------------------------------------------| -------------------------------------| +| `yoursite/layouts/partials/paige/body-first.html` | The beginning of the body tag | +| `yoursite/layouts/partials/paige/body-last.html` | The end of the body tag | +| `yoursite/layouts/partials/paige/footer-first.html` | The beginning of the footer tag | +| `yoursite/layouts/partials/paige/footer-last.html` | The end of the footer tag | +| `yoursite/layouts/partials/paige/head-first.html` | The beginning of the head tag | +| `yoursite/layouts/partials/paige/head-last.html` | The end of the head tag | +| `yoursite/layouts/partials/paige/header-last.html` | The end of the header tag | +| `yoursite/layouts/partials/paige/main-first.html` | The beginning of the main tag | +| `yoursite/layouts/partials/paige/main-last.html` | The end of the main tag | +| `yoursite/layouts/partials/paige/site-header-first.html` | The beginning of the site header tag | +| `yoursite/layouts/partials/paige/style-first.css` | The beginning of the style tag | +| `yoursite/layouts/partials/paige/style-last.css` | The end of the style tag | ### Override diff --git a/layouts/partials/paige/site-header.html b/layouts/partials/paige/site-header.html index 61e48737..b2fd6d31 100644 --- a/layouts/partials/paige/site-header.html +++ b/layouts/partials/paige/site-header.html @@ -3,7 +3,7 @@ {{ $ancestors := $page.Ancestors }} {{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $description := $page.Param "paige.site_description" | markdownify }} -{{ $first := templates.Exists "partials/paige/header-first.html" }} +{{ $first := templates.Exists "partials/paige/site-header-first.html" }} {{ $last := templates.Exists "partials/paige/header-last.html" }} {{ $links := false }} {{ $menu := site.Menus.main }} @@ -35,7 +35,7 @@ {{ if or $ancestors $description $first $last $menu $title }}
{{ if $first }} - {{ partial "paige/header-first.html" $page }} + {{ partial "paige/site-header-first.html" $page }} {{ end }} {{ with $title }}