diff --git a/README.md b/README.md
index d335bca6..f1b8701e 100644
--- a/README.md
+++ b/README.md
@@ -435,6 +435,8 @@ The `paige/gallery` shortcode provides an arrangement of images.
```
{{< paige/gallery
align=""
+ breakpoints=""
+ densities=""
fetchpriority=""
height=""
images=""
@@ -457,6 +459,10 @@ Parameters:
align
- Optional. String. Cross axis alignment. Must be
baseline
, center
, end
, start
, or stretch
.
+ breakpoints
+ - Optional. Boolean. Whether to generate copies of the image sized to each Bootstrap breakpoint. Must not use with
densities
.
+ densities
+ - Optional. String. Float numbers suffixed with an "x", delimited by spaces. The pixel densities of the image to generate. There must be at least two. The largest density matches the original image. Examples are
1x 2x
, 1x 1.5x 2x 2.5x 3x
, and 0.5x 1.33x 6x 10x
. Must not use with breakpoints
.
fetchpriority
- Optional. String. Must be
high
or low
.
height
@@ -538,11 +544,11 @@ Parameters:
alt
- Optional. String. Plain text. Image alt.
breakpoints
- - Optional. Boolean. Whether to generate copies of the image sized to each Bootstrap breakpoint. Must not be set with
densities
, sizes
, or srcset
.
+ - Optional. Boolean. Whether to generate copies of the image sized to each Bootstrap breakpoint. Must not use with
densities
, sizes
, or srcset
.
class
- Optional. String. Class attribute value.
densities
- - Optional. String. Float numbers suffixed with an "x", delimited by spaces. The pixel densities of the image to generate. There must be at least two. The largest density matches the original image. Examples are
1x 2x
, 1x 1.5x 2x 2.5x 3x
, and 0.5x 1.33x 6x 10x
. Must not be set with breakpoints
, sizes
, or srcset
.
+ - Optional. String. Float numbers suffixed with an "x", delimited by spaces. The pixel densities of the image to generate. There must be at least two. The largest density matches the original image. Examples are
1x 2x
, 1x 1.5x 2x 2.5x 3x
, and 0.5x 1.33x 6x 10x
. Must not use with breakpoints
, sizes
, or srcset
.
fetchpriority
- Optional. String. Must be
high
or low
.
height
diff --git a/layouts/shortcodes/paige/gallery.html b/layouts/shortcodes/paige/gallery.html
index 5336e0f2..c0fb5f14 100644
--- a/layouts/shortcodes/paige/gallery.html
+++ b/layouts/shortcodes/paige/gallery.html
@@ -1,4 +1,6 @@
{{ $align := .Get "align" | default "center" }}
+{{ $breakpoints := .Get "breakpoints" }}
+{{ $densities := .Get "densities" }}
{{ $fetchpriority := .Get "fetchpriority" }}
{{ $height := .Get "height" }}
{{ $images := .Get 0 | default (.Get "images") }}
@@ -44,6 +46,8 @@
{{ range $resources }}
{{ partial "paige/image.html" (dict
+ "breakpoints" $breakpoints
+ "densities" $densities
"fetchpriority" $fetchpriority
"height" $height
"linked" $linked
@@ -66,6 +70,8 @@
{{ else }}
{{ range $resources }}
{{ partial "paige/image.html" (dict
+ "breakpoints" $breakpoints
+ "densities" $densities
"fetchpriority" $fetchpriority
"height" $height
"linked" $linked