Change image shortcode to use div

This commit is contained in:
Will Faught
2024-06-03 23:17:35 -07:00
parent fedcac0f3e
commit 46afb013bc
4 changed files with 24 additions and 110 deletions

View File

@@ -17,24 +17,26 @@
{{ $title := .Get "title" }}
{{ $width := .Get "width" }}
{{ partial "paige/image.html" (dict
"alt" $alt
"breakpoints" $breakpoints
"class" $class
"densities" $densities
"fetchpriority" $fetchpriority
"height" $height
"link" $link
"linked" $linked
"loading" $loading
"maxheight" $maxheight
"maxwidth" $maxwidth
"page" .Page
"process" $process
"sizes" $sizes
"src" $src
"srcset" $srcset
"style" $style
"title" $title
"width" $width
) }}
<div class="paige-image">
{{ partial "paige/image.html" (dict
"alt" $alt
"breakpoints" $breakpoints
"class" $class
"densities" $densities
"fetchpriority" $fetchpriority
"height" $height
"link" $link
"linked" $linked
"loading" $loading
"maxheight" $maxheight
"maxwidth" $maxwidth
"page" .Page
"process" $process
"sizes" $sizes
"src" $src
"srcset" $srcset
"style" $style
"title" $title
"width" $width
) }}
</div>