diff --git a/README.md b/README.md index 8aff0a5a..ce87606f 100644 --- a/README.md +++ b/README.md @@ -475,7 +475,6 @@ title: Search ### Images 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, 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. diff --git a/layouts/shortcodes/paige/image.html b/layouts/shortcodes/paige/image.html index e7f54e5b..9ab8131d 100644 --- a/layouts/shortcodes/paige/image.html +++ b/layouts/shortcodes/paige/image.html @@ -1,4 +1,4 @@ -
+
{{ $link := .Get 2 | default (.Get `link`) }} {{ with $link }}