Open Etheryte opened 4 years ago
You shouldn't need to include the original gem. Make sure you have a srcset config in your _config.yml file.
srcset:
optipng: true
cjpeg: true
cache: "/tmp/images"
jpeg_quality: 50
and use the original name to load the plugin:
plugins:
...
- jekyll-srcset
I get the following error upon building:
Installing both this plugin's predecessor gem and this one seems to solve the issue:
Then the tag is found and different sizes are generated as expected.
My gemfile uses Github pages (
gem "github-pages", group: :jekyll_plugins
) and I initiate the plugin in_config.yml
as follows:The problem probably stems from the way my setup is done, but I'm not familiar enough with Ruby to figure it out. Since the above solution works for me, I hope it can help anyone else who comes across it.