Add _url suffix to center, stretch home page params

master
Will Faught 3 years ago
parent 1183920297
commit 1c2a6a5589

@ -283,9 +283,9 @@ Additional optional home page parameters:
```yaml
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
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:

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

@ -2,10 +2,10 @@
<article>
{{ partial "paige/metadata.html" . }}
<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>
{{ end }}
{{ with .Params.center }}
{{ with .Params.center_url }}
<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">
</p>

Loading…
Cancel
Save