Use paige.home config for home page

master
Will Faught 2 years ago
parent 62c123d558
commit 32694e101c

@ -368,14 +368,16 @@ paige:
hide: false # Default is false
```
Additional optional home page parameters:
Optional home page parameters:
```yaml
blurb: "There's a new daddy in town." # Displayed below the greeting
greeting: "You know best" # Displayed below the image
image_raw: true # Do not copy or process the image
image_stretch: true # Stretch the image fully horizontally if true; center the image otherwise
image_url: "me.jpg" # A page, site, or remote resource glob
paige:
home:
blurb: "There's a new daddy in town." # Displayed below the greeting
greeting: "You know best" # Displayed below the image
image_raw: true # Do not copy or process the image
image_stretch: true # Stretch the image fully horizontally if true; center the image otherwise
image_url: "me.jpg" # A page, site, or remote resource glob
```
Additional optional list page parameters:

@ -1,11 +1,16 @@
---
blurb: There's a new daddy in town. A discipline daddy. If I make this comeback, I'll buy you a hundred George Michaels that you can teach to drive! These are my awards, Mother. From Army. The seal is for marksmanship, and the gorilla is for sand racing. We'll have to find something to do so that people can look at you without wanting to kill [themselves](https://bluthipsum.com).
description: Go ahead, touch the Cornballer
greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU)
image_stretch: true
image_url: stretch.webp
paige:
titleclass: display-1 fw-bold text-center
home:
blurb: There's a new daddy in town. A discipline daddy. If I make this comeback, I'll buy you a hundred George Michaels that you can teach to drive! These are my awards, Mother. From Army. The seal is for marksmanship, and the gorilla is for sand racing. We'll have to find something to do so that people can look at you without wanting to kill [themselves](https://bluthipsum.com).
greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU)
image_stretch: true
image_url: stretch.webp
page:
reading_time:
hide: true
title:
class: display-1 fw-bold text-center
title: No Borders, No Limits
---

@ -4,25 +4,25 @@
<article>
{{ partial "paige/metadata.html" $page }}
<section>
{{ if $page.Params.image_url }}
{{ $class := cond $page.Params.image_stretch "rounded-4 shadow w-100" "mw-100 rounded-4 shadow" }}
{{ $style := cond $page.Params.image_stretch "height: 20rem; object-fit: cover" "height: 20rem" }}
{{ if $page.Param "paige.home.image_url" }}
{{ $class := cond ($page.Param "paige.home.image_stretch" | not) "mw-100 rounded-4 shadow" "rounded-4 shadow w-100" }}
{{ $style := cond ($page.Param "paige.home.image_stretch" | not) "height: 20rem" "height: 20rem; object-fit: cover" }}
<p {{ if not $page.Params.image_stretch }} class="text-center" {{ end }}>
<p {{ if not ($page.Param "paige.home.image_stretch") }} class="text-center" {{ end }}>
{{ partial "paige/img.html" (dict
"class" $class
"fetchpriority" "high"
"loading" "eager"
"raw" $page.Params.image_raw
"src" $page.Params.image_url
"raw" ($page.Param "paige.home.image_raw")
"src" ($page.Param "paige.home.image_url")
"style" $style
) }}
</p>
{{ end }}
{{ with $page.Params.greeting }}
{{ with $page.Param "paige.home.greeting" }}
<p class="display-5 fw-bold h2 text-center">{{ . | markdownify }}</p>
{{ end }}
{{ with $page.Params.blurb }}
{{ with $page.Param "paige.home.blurb" }}
<div class="container-fluid">
<div class="justify-content-center row">
<div class="col col-auto col-lg-7 px-0">

Loading…
Cancel
Save