I get the following error upon building:
Error: A Liquid tag in the excerpt of foo.md couldn't be parsed.
Error: could not read file foo.md: undefined method `ancestors' for nil:NilClass
Liquid Exception: Liquid syntax error (line 1): Unknown tag 'image_tag' in foo.md
Installing both this plugin's predecessor gem and this one seems to solve the issue:
group :jekyll_plugins do
gem "jekyll-srcset"
gem "jekyll-srcset2"
end
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.
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.ymlas 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.