Add image alt to home layout
This commit is contained in:
@@ -312,6 +312,7 @@ paige:
|
||||
blurb: "" # Displayed below the greeting
|
||||
greeting: "" # Displayed below the image
|
||||
image:
|
||||
alt: "" # Image alt
|
||||
raw: false # Do not copy or process the file
|
||||
stretch: false # Stretch the image fully horizontally if true; center the image otherwise
|
||||
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."
|
||||
greeting: "An advanced Hugo theme"
|
||||
image:
|
||||
alt: "Landscape"
|
||||
stretch: true
|
||||
url: "landscape.webp"
|
||||
social:
|
||||
|
@@ -15,6 +15,7 @@
|
||||
|
||||
<p {{ if not $stretch }} class="text-center" {{ end }}>
|
||||
{{ partial "paige/img.html" (dict
|
||||
"alt" $page.Params.paige.home.image.alt
|
||||
"class" $class
|
||||
"fetchpriority" "high"
|
||||
"loading" "eager"
|
||||
|
Reference in New Issue
Block a user