From 237f9c39bbb40158bf6dea13c6ee8c849078dc5a Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 31 Dec 2022 22:41:40 -0800 Subject: [PATCH] Remove inline param for image.html --- README.md | 1 - layouts/shortcodes/paige/image.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 }}