We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
crashes with Jekyll 4.0.0 on ruby 2.6.5p114 (arch linux):
Jekyll::Drops::StaticFileDrop Liquid Exception: undefined method `sub' for #<Jekyll::Drops::StaticFileDrop:0x00005587c47f6fd8> in index.html
Works using this small patch:
diff --git a/lib/jekyll-image-size.rb b/lib/jekyll-image-size.rb index ead00a0..560c911 100644 --- a/lib/jekyll-image-size.rb +++ b/lib/jekyll-image-size.rb @@ -32,7 +32,7 @@ class ImageSizeTag < Liquid::Tag size = FastImage.size(source) if context && !size if contextSource = rawSource = context[source] - contextSource = contextSource.sub(/^\//, '') + contextSource = contextSource.path.sub(/^\//, '') size = FastImage.size(contextSource) end end (END)
But this crashes for older versions (#2)
Unfortunately don't really know ruby well so can't tell more...
The text was updated successfully, but these errors were encountered:
Any fix for this?
Sorry, something went wrong.
No branches or pull requests
Hi!
crashes with Jekyll 4.0.0 on ruby 2.6.5p114 (arch linux):
Works using this small patch:
But this crashes for older versions (#2)
Unfortunately don't really know ruby well so can't tell more...
The text was updated successfully, but these errors were encountered: