moving to Hugo the posts in the site I need to convert have images, so there is need to properly handle them, iow. have ability for different aligning (left/right/center), resizing them, taking care about responsiveness etc.
I’m using ‘beg’ theme along with Asciidoc(tor) markup and wonder if there is some contributed shortcode to handle it since I’m not sure whether one is supposed to handled everything by using ‘figure’ shortcode and appropriate CSS class(es) along with it?
The figure shortcode accepts a class parameter. (Source)
In the Icarus theme I am using, i spotted an alignright class which floats the target. So {{<figure class="alignright" ... will float the image left or right for you.
I stumbled upon this thread when googling for letting figures in hugo float in the text.
The solution that worked for my purpose, letting some pictures float left or right of the text with a width of 30% of the content was using the class attribute of figure and adding following 2 css statements to the template: