hugo-geo icon indicating copy to clipboard operation
hugo-geo copied to clipboard

images - size?

Open dazinator opened this issue 7 years ago • 2 comments

I have started to add some images to my post, but I notice that they aren't resized to fit the page.. i.e they look like this:

image

Can this be something that is addressed by the theme i.e so images have some default size?

dazinator avatar Jan 08 '17 21:01 dazinator

Think that images just need to be given the class img-responsive to solve this. I'll try tomorrow.

dazinator avatar Jan 13 '17 02:01 dazinator

Ok - adding this in the footer fixed up images:

$( "img" ).addClass("img-responsive");

Not sure whether you would always want all images to be responsive, but I think it makes sense by default. If people require a specific size they can always use shortcodes / html directly.

dazinator avatar Feb 19 '17 14:02 dazinator