Rename header-first.html to site-header-first.html
This commit is contained in:
28
README.md
28
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
|
||||
|
||||
|
@@ -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 }}
|
||||
<header class="my-3" id="paige-site-header">
|
||||
{{ if $first }}
|
||||
{{ partial "paige/header-first.html" $page }}
|
||||
{{ partial "paige/site-header-first.html" $page }}
|
||||
{{ end }}
|
||||
|
||||
{{ with $title }}
|
||||
|
Reference in New Issue
Block a user