Skip to content
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

Can't use variables as image source #14

Open
DuendeInexistente opened this issue Aug 10, 2023 · 1 comment
Open

Can't use variables as image source #14

DuendeInexistente opened this issue Aug 10, 2023 · 1 comment

Comments

@DuendeInexistente
Copy link

Title says it all. It limits the plugin's usability in templates something fierce.

@CookiePLMonster
Copy link

I was able to use variables for the image source, but not for the alt text. In other words, neither of those produce the correct alt text:

            {%- assign image_url = item.image | relative_url -%}
            {% imagesize image_url:img alt=item.title %}

            {%- assign image_url = item.image | relative_url -%}
            {% imagesize image_url:img alt={{ item.title }} %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants