eeeps/eleventy-respimg

Support variables inside `respimg` tag

adamculpepper opened this issue · 1 comments

Example:

{%- for banner in home_slides.slides -%}
	<a href="{{ banner.link }}" title="{{ banner.title }}">
		{% respimg "https://egv54645.netlify.app/{{ banner.image }}", "{{ banner.title }}", "1200px" %}
	</a>
{%- endfor -%}

For people coming behind me looking for this functionality, this is already possible.

Instead of:
{% respimg {{ banner.image }}", "{{ banner.title }}", "1200px" %}
use this:
{% respimg banner.image, banner.title, "1200px" %}