# Jekyll Img Srcset This plugin resizes images to offer lower resolution images for devices with restricted screen size such as mobile. ## Installation Add this line to your Jekyll site's `Gemfile`: ```ruby gem "jekyll-img-srcset" ``` or for the most up to date version from the git repository ```ruby gem "jekyll-img-srcset", :git => "git@gitlab2.informatik.uni-wuerzburg.de:hci-development/jekyll-img-srcset.git" ``` And add these lines to your Jekyll site's `_config.yml`: ```yaml plugins: - jekyll-img-srcset ``` Then execute: $ bundle Or install it yourself as: $ gem install hci-theme ## Usage Use the Liquid tag as shown below to generate a figure tag with the requested resolutions. ``` {% imgsrcset src="general/map.jpg" dimension="wide" %} ```