hugo-theme-hello-friend icon indicating copy to clipboard operation
hugo-theme-hello-friend copied to clipboard

FIX - add alignment info to imgproc and figure shortcodes

Open aormsby opened this issue 4 years ago • 2 comments

The imgproc and figure shortcodes have some alignment issues. The <img> element is always left-aligned within the figure element and can look strange when the caption is wider than the image. (Maybe related to recent figure styling updates?)

Screen Shot 2020-09-13 at 16 17 02

My current fix is to add the class position parameters to the internal img tags. The alignment of the image will match the alignment of the figure. I'm wondering if it's a little hacky, but it does work.

Screen Shot 2020-09-13 at 16 18 59

If this works for you, it should be ready to go.

aormsby avatar Sep 13 '20 21:09 aormsby

In addition, I've added alt text and hyperlinks to my image options over here. I'm happy to include those enhancements in my PR if you're interested in having them. Just let me know. :)

aormsby avatar Sep 13 '20 21:09 aormsby

Sorry for a late response (I don't where I've been for the whole year...). I'd be nice if you still want to add alt and hiperlinks :)

panr avatar Nov 01 '21 13:11 panr