schnerring / hugo-theme-gruvbox

A retro-looking Hugo theme inspired by gruvbox. The pastel colors are high contrast, easily distinguishable, pleasing to the eye, and feature light and dark color palettes.
MIT License
184 stars 46 forks source link

Some notes on responsive images #272

Open wrobelda opened 4 months ago

wrobelda commented 4 months ago

Hi there,

I used your responsive image code to add similar functionality to WonderMod theme in this PR.

I did make a few changes, though, namely: — I added an AutoOrient filter to prevent Hugo from losing the EXIF rotation information upon rendering the images (https://gohugo.io/functions/images/autoorient/) — ported back the figcaption section from the original figure Hugo shortcode, such that your image partial can be used to generate img in figure shortcode as well, although my understanding is you don't offer that.

I thought you'd find that noteworthy.

schnerring commented 4 months ago

I'll leave this issue open until I find the time to incorporate this into the theme.

Thanks for the feedback!