From 14ebcdecf31b1480ae997a0ab4d68207d31e083c Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Sun, 21 Feb 2021 21:54:43 -0800 Subject: Add 'align' option to figure shortcode (#256) Usage: {{< figure align=center src="image.jpg" >}} Parameter values: - 'center': align image and captions to center of page - anything else neglected * Appends "#center" to the image's URL in order to utilize existing CSS rules for centering images. --- layouts/shortcodes/figure.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 71aebb1..77f188e 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,8 +1,11 @@ - + {{- if .Get "link" -}} {{- end }} -