-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
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
responsive_image_block error #70
Comments
It turns out that the tag works with no leading whitespace at all inside the block. Perhaps this can be made clearer in the documentation? |
It should work fine with whitespace, so long as the indentation is consistent (this is mentioned in the docs). There are even tests to make sure this works, although none of the tests use whitespace control like you are in that code ( Was the indentation within that block using tabs or spaces? |
The indentation was using spaces. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi there, I have the same issue, but how to I fix that? |
my problem was different. surrounding {{ path }} and {{ alt }} with '' worked fine. Maybe a sentence will be handled like a list of strings instead of a string? |
@grauschnabel the unquoted: I am an unquoted string
single_quotes: 'This works too'
double_quotes: "And this" If you don't know the contents of the string beforehand, it's probably better to use quotes just to be safe. It might even be best to escape the contents, e.g. title: "{{ title | escape }}" |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi!
I am getting the following error when using responsive_image_block:
~/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/psych.rb:377:in `parse': (<unknown>): mapping values are not allowed in this context
This is my code:
The
responsive_image
tag works, but I need to use Liquid variables.Thank you.
The text was updated successfully, but these errors were encountered: