Add _url suffix to center, stretch home page params

This commit is contained in:
Will Faught
2023-01-01 01:02:21 -08:00
parent 1183920297
commit 1c2a6a5589
3 changed files with 5 additions and 5 deletions

View File

@@ -283,9 +283,9 @@ Additional optional home page parameters:
```yaml ```yaml
blurb: "There's a new daddy in town." # Displayed below the greeting blurb: "There's a new daddy in town." # Displayed below the greeting
center: "my-center.jpg" # An image that is centered center_url: "my-center.jpg" # An image that is centered
greeting: "You know best" # Displayed below the center and stretch images greeting: "You know best" # Displayed below the center and stretch images
stretch: "my-stretch.jpg" # A 4x3 or panorama image that is stretched fully horizontally stretch_url: "my-stretch.jpg" # A 4x3 or panorama image that is stretched fully horizontally
``` ```
Additional optional list page parameters: Additional optional list page parameters:

View File

@@ -2,7 +2,7 @@
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). 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 description: Go ahead, touch the Cornballer
greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU) greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU)
stretch: stretch.webp stretch_url: stretch.webp
title: No Borders, No Limits title: No Borders, No Limits
--- ---

View File

@@ -2,10 +2,10 @@
<article> <article>
{{ partial "paige/metadata.html" . }} {{ partial "paige/metadata.html" . }}
<section> <section>
{{ with .Params.stretch }} {{ with .Params.stretch_url }}
<div class="mb-3 mw-100 rounded-4 shadow" style="background-image: url('{{ partial `paige/func-url.html` . }}'); background-position: center; background-size: cover; height: 20rem"></div> <div class="mb-3 mw-100 rounded-4 shadow" style="background-image: url('{{ partial `paige/func-url.html` . }}'); background-position: center; background-size: cover; height: 20rem"></div>
{{ end }} {{ end }}
{{ with .Params.center }} {{ with .Params.center_url }}
<p class="text-center"> <p class="text-center">
<img class="mw-100 rounded-4 shadow" fetchpriority="high" referrerpolicy="no-referrer" src="{{ partial `paige/func-url.html` . }}" style="max-height: 20rem"> <img class="mw-100 rounded-4 shadow" fetchpriority="high" referrerpolicy="no-referrer" src="{{ partial `paige/func-url.html` . }}" style="max-height: 20rem">
</p> </p>