Add image alt to home layout

master
Will Faught 2 years ago
parent 6746735530
commit 12a356dd0e

@ -312,6 +312,7 @@ paige:
blurb: "" # Displayed below the greeting blurb: "" # Displayed below the greeting
greeting: "" # Displayed below the image greeting: "" # Displayed below the image
image: image:
alt: "" # Image alt
raw: false # Do not copy or process the file raw: false # Do not copy or process the file
stretch: false # Stretch the image fully horizontally if true; center the image otherwise stretch: false # Stretch the image fully horizontally if true; center the image otherwise
url: "" # Local or remote resource glob url: "" # Local or remote resource glob

@ -6,6 +6,7 @@ paige:
blurb: "Paige is designed to put your content front and center, avoiding the typical clutter. The look is seamless and smooth, scalable and readable, portable and efficient. The layout is minimal and responsive, using verticality and white space to focus and delineate parts of the page. The implementation is flexible and extensible. It's a versatile canvas that serves most web needs." blurb: "Paige is designed to put your content front and center, avoiding the typical clutter. The look is seamless and smooth, scalable and readable, portable and efficient. The layout is minimal and responsive, using verticality and white space to focus and delineate parts of the page. The implementation is flexible and extensible. It's a versatile canvas that serves most web needs."
greeting: "An advanced Hugo theme" greeting: "An advanced Hugo theme"
image: image:
alt: "Landscape"
stretch: true stretch: true
url: "landscape.webp" url: "landscape.webp"
social: social:

@ -15,6 +15,7 @@
<p {{ if not $stretch }} class="text-center" {{ end }}> <p {{ if not $stretch }} class="text-center" {{ end }}>
{{ partial "paige/img.html" (dict {{ partial "paige/img.html" (dict
"alt" $page.Params.paige.home.image.alt
"class" $class "class" $class
"fetchpriority" "high" "fetchpriority" "high"
"loading" "eager" "loading" "eager"

Loading…
Cancel
Save