Rename header-first.html to site-header-first.html

master
Will Faught 12 months ago
parent 1cc634b02e
commit 8fd4a7aa13

@ -913,17 +913,17 @@ Body: None.
### Include ### Include
| If this file exists | It is included at | | 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-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/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-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/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-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/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/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-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/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-first.css` | The beginning of the style tag |
| `yoursite/layouts/partials/paige/style-last.css` | The end of the style tag | | `yoursite/layouts/partials/paige/style-last.css` | The end of the style tag |

@ -3,7 +3,7 @@
{{ $ancestors := $page.Ancestors }} {{ $ancestors := $page.Ancestors }}
{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }}
{{ $description := $page.Param "paige.site_description" | markdownify }} {{ $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" }} {{ $last := templates.Exists "partials/paige/header-last.html" }}
{{ $links := false }} {{ $links := false }}
{{ $menu := site.Menus.main }} {{ $menu := site.Menus.main }}
@ -35,7 +35,7 @@
{{ if or $ancestors $description $first $last $menu $title }} {{ if or $ancestors $description $first $last $menu $title }}
<header class="my-3" id="paige-site-header"> <header class="my-3" id="paige-site-header">
{{ if $first }} {{ if $first }}
{{ partial "paige/header-first.html" $page }} {{ partial "paige/site-header-first.html" $page }}
{{ end }} {{ end }}
{{ with $title }} {{ with $title }}

Loading…
Cancel
Save