Skip to content

Unknown tag image_tag #1

@Etheryte

Description

@Etheryte

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:

plugins:
  - jekyll-srcset

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions