Add paige.site_title, site_description
This commit is contained in:
@@ -183,6 +183,8 @@ color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windo
|
|||||||
color_scheme = "auto" # Must be "auto", "dark", or "light"
|
color_scheme = "auto" # Must be "auto", "dark", or "light"
|
||||||
external_link_new_tab = false # Open external links in new tabs
|
external_link_new_tab = false # Open external links in new tabs
|
||||||
math = false # Enable math typesetting
|
math = false # Enable math typesetting
|
||||||
|
site_title = "" # Appears above the menu, above the site description, if set
|
||||||
|
site_description = "" # Appears above the menu, below the site title, if set
|
||||||
style = "" # CSS included at the end of the stylesheet, before style-last.css
|
style = "" # CSS included at the end of the stylesheet, before style-last.css
|
||||||
|
|
||||||
[paige.analytics]
|
[paige.analytics]
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
description: "Powerful, pliable pixel perfection."
|
|
||||||
paige:
|
paige:
|
||||||
search:
|
search:
|
||||||
hide_page: true
|
hide_page: true
|
||||||
style: |
|
style: |
|
||||||
#paige-collections,
|
#paige-collections,
|
||||||
|
#paige-metadata,
|
||||||
#paige-sections,
|
#paige-sections,
|
||||||
#paige-pages {
|
#paige-pages {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -12,7 +12,6 @@ paige:
|
|||||||
#paige-title {
|
#paige-title {
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
}
|
}
|
||||||
title: "Paige"
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<p>{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4 shadow-lg" fetchpriority="high" height="20rem" loading="eager" process="webp" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="100%" %}}</p>
|
<p>{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4 shadow-lg" fetchpriority="high" height="20rem" loading="eager" process="webp" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="100%" %}}</p>
|
||||||
|
@@ -96,6 +96,10 @@ email = "will.faught@example.com"
|
|||||||
name = "Will Faught"
|
name = "Will Faught"
|
||||||
url = "https://willfaught.com/paige"
|
url = "https://willfaught.com/paige"
|
||||||
|
|
||||||
|
[params.paige]
|
||||||
|
site_title = "Paige"
|
||||||
|
site_description = "Powerful, pliable pixel perfection"
|
||||||
|
|
||||||
[params.paige.git]
|
[params.paige.git]
|
||||||
commit_url = "https://github.com/willfaught/paige/commit/%s"
|
commit_url = "https://github.com/willfaught/paige/commit/%s"
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
{{ partial "paige/header-first.html" $page }}
|
{{ partial "paige/header-first.html" $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "paige/site.html" $page }}
|
||||||
{{ partial "paige/menu.html" $page }}
|
{{ partial "paige/menu.html" $page }}
|
||||||
{{ partial "paige/breadcrumbs.html" . }}
|
{{ partial "paige/breadcrumbs.html" . }}
|
||||||
|
|
||||||
|
8
layouts/partials/paige/site.html
Normal file
8
layouts/partials/paige/site.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ with $page.Param "paige.site_title" }}
|
||||||
|
<p class="display-1 fw-bold mb-2 text-center">{{ . | markdownify }}</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ with $page.Param "paige.site_description" }}
|
||||||
|
<p class="lead text-center">{{ . | markdownify }}</p>
|
||||||
|
{{ end }}
|
Reference in New Issue
Block a user