kaushalmodi / hugo-bare-min-theme

A bare minimum theme for Hugo (https://gohugo.io) to help develop and debug Hugo sites -- https://hugo-bare-min.netlify.com/,
https://hugo-sandbox.netlify.com/
MIT License
80 stars 16 forks source link

Images missing max-width property #3

Closed paskal closed 6 years ago

paskal commented 6 years ago

Hello again!

I've stumbled upon the very same issue as the https://github.com/dim0627/hugo_theme_beg/issues/19: image

Only half of an image fits on the screenshot, should be whole.

kaushalmodi commented 6 years ago

Hello!

This one is definitely outside the "bare min" scope.. as it has to do with looks and CSS. Or if the image is too big, resize it before committing or use the Image Processing power!

But you can customize/override the default CSS by adding a .Site.Params.custom_css as shown in https://github.com/kaushalmodi/hugo-bare-min-theme/commit/8d789df23db2f8913d95b336b32955617c236d71.

See https://stackoverflow.com/a/11079048/1219634 for setting img .. max-width CSS.