Remove inline param for image.html
This commit is contained in:
@@ -475,7 +475,6 @@ title: Search
|
|||||||
### Images
|
### Images
|
||||||
|
|
||||||
The `paige/image` shortcode provides a figure with a centered image and an optional centered caption.
|
The `paige/image` shortcode provides a figure with a centered image and an optional centered caption.
|
||||||
The image and caption can optionally be displayed inline instead of centered.
|
|
||||||
The image has optional alt, title, width, and height attributes,
|
The image has optional alt, title, width, and height attributes,
|
||||||
and can optionally be wrapped in an anchor. Only the image source parameter is required.
|
and can optionally be wrapped in an anchor. Only the image source parameter is required.
|
||||||
If the image source is a relative path, it is assumed to be a page resource.
|
If the image source is a relative path, it is assumed to be a page resource.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<figure {{ if eq (.Get `inline`) true }} class="figure"{{ else }} class="align-items-center d-flex flex-column"{{ end }}>
|
<figure class="align-items-center d-flex flex-column">
|
||||||
{{ $link := .Get 2 | default (.Get `link`) }}
|
{{ $link := .Get 2 | default (.Get `link`) }}
|
||||||
{{ with $link }}
|
{{ with $link }}
|
||||||
<a href="{{ . }}">
|
<a href="{{ . }}">
|
||||||
|
Reference in New Issue
Block a user