Add breakpoints, densities, process, sizes, srcset params

This commit is contained in:
Will Faught
2023-03-27 20:23:07 -07:00
parent d2d5a5802a
commit c3796b9c50
3 changed files with 195 additions and 50 deletions

View File

@@ -1,12 +1,14 @@
{{ $alt := .Get "alt" }}
{{ $format := .Get "format" }}
{{ $breakpoints := .Get "breakpoints" }}
{{ $densities := .Get "densities" }}
{{ $height := .Get "height" }}
{{ $link := .Get "link" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $method := .Get "method" }}
{{ $options := .Get "options" }}
{{ $process := .Get "process" }}
{{ $sizes := .Get "sizes" }}
{{ $src := .Get 0 | default (.Get "src") }}
{{ $srcset := .Get "srcset" }}
{{ $title := .Get "title" }}
{{ $width := .Get "width" }}
@@ -16,15 +18,17 @@
{{ $content := partial "paige/img.html" (dict
"alt" $alt
"breakpoints" $breakpoints
"class" "img-fluid"
"format" $format
"densities" $densities
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
"process" $process
"page" .Page
"sizes" $sizes
"src" $src
"srcset" $srcset
"title" $title
"width" $width
) }}