marzeelabs / besugo

Boilerplate for MZ version of hugo + netlifyCMS
https://besugo.marzeelabs.org
10 stars 0 forks source link

Build srcset attributes automatically #23

Closed Quicksaver closed 6 years ago

Quicksaver commented 6 years ago

It should be possible to automatically build srcset attributes into our built html files based on our sass configurations, rather than having to manually change everything if/when we decide to make any changes to them.

For example, say we'd like to include a new xx-large image in our responsive images set for some reason. Rather than manually changing every single srcset attribute in our layouts, we'd just add that extra entry in the configuration object in our package.json and it would do its thing.