Company
Date Published
Author
Matt Biilmann
Word count
368
Language
English
Hacker News points
3

Summary

Jekyll Srcset is a small plugin for Jekyll that simplifies responsive image management without complicating things. The plugin uses the srcset attribute to generate various image versions, allowing browsers to pick the best one based on device density and aspect ratio. By adding the plugin to your Gemfile and using the {% image_tag %} syntax in Liquid templates, you can easily add a srcset attribute to your images, saving bandwidth for low-density devices while serving crisp images to high-density screens.