Disallow nested use of gallery shortcode params align, justify
This commit is contained in:
@@ -575,11 +575,9 @@ The `paige/gallery` shortcode provides a figure with a collection of images.
|
|||||||
|
|
||||||
{{< paige/gallery >}}
|
{{< paige/gallery >}}
|
||||||
{{< paige/gallery
|
{{< paige/gallery
|
||||||
align="center"
|
|
||||||
caption="My caption"
|
caption="My caption"
|
||||||
height="10rem"
|
height="10rem"
|
||||||
image="me.jpg"
|
image="me.jpg"
|
||||||
justify="center"
|
|
||||||
maxheight="10rem"
|
maxheight="10rem"
|
||||||
maxwidth="10rem"
|
maxwidth="10rem"
|
||||||
method="resize"
|
method="resize"
|
||||||
@@ -588,11 +586,9 @@ The `paige/gallery` shortcode provides a figure with a collection of images.
|
|||||||
width="10rem"
|
width="10rem"
|
||||||
/>}}
|
/>}}
|
||||||
{{< paige/gallery
|
{{< paige/gallery
|
||||||
align="center"
|
|
||||||
caption="My caption"
|
caption="My caption"
|
||||||
height="10rem"
|
height="10rem"
|
||||||
image="you.jpg"
|
image="you.jpg"
|
||||||
justify="center"
|
|
||||||
maxheight="10rem"
|
maxheight="10rem"
|
||||||
maxwidth="10rem"
|
maxwidth="10rem"
|
||||||
method="resize"
|
method="resize"
|
||||||
@@ -609,7 +605,7 @@ Parameters:
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><code>align</code></dt>
|
<dt><code>align</code></dt>
|
||||||
<dd>Optional. String. Cross axis alignment. Must be <code>start</code>, <code>center</code>, <code>end</code>, etc. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-items"><code>align-items</code></a>.</dd>
|
<dd>Optional. String. Cross axis alignment. Must be <code>start</code>, <code>center</code>, <code>end</code>, etc. Must not be used when nested. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-items"><code>align-items</code></a>.</dd>
|
||||||
<dt><code>caption</code></dt>
|
<dt><code>caption</code></dt>
|
||||||
<dd>Optional. String. Markdown. Descriptive text below the image or images.</dd>
|
<dd>Optional. String. Markdown. Descriptive text below the image or images.</dd>
|
||||||
<dt><code>height</code></dt>
|
<dt><code>height</code></dt>
|
||||||
@@ -619,7 +615,7 @@ Parameters:
|
|||||||
<dt><code>images</code></dt>
|
<dt><code>images</code></dt>
|
||||||
<dd>Optional. Position 0. String. Page, site, or remote images glob. Default is all image page resources.</dd>
|
<dd>Optional. Position 0. String. Page, site, or remote images glob. Default is all image page resources.</dd>
|
||||||
<dt><code>justify</code></dt>
|
<dt><code>justify</code></dt>
|
||||||
<dd>Optional. String. Main axis space distribution. Must be <code>start</code>, <code>center</code>, <code>end</code>, etc. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content"><code>justify-content</code></a>.</dd>
|
<dd>Optional. String. Main axis space distribution. Must be <code>start</code>, <code>center</code>, <code>end</code>, etc. Must not be used when nested. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content"><code>justify-content</code></a>.</dd>
|
||||||
<dt><code>maxheight</code></dt>
|
<dt><code>maxheight</code></dt>
|
||||||
<dd>Optional. String. CSS value. Maximum image height.</dd>
|
<dd>Optional. String. CSS value. Maximum image height.</dd>
|
||||||
<dt><code>maxwidth</code></dt>
|
<dt><code>maxwidth</code></dt>
|
||||||
|
Reference in New Issue
Block a user