Fix a small bug in _includes/responsive_img.html

Correctly fixes the issue mentioned in #471.
This commit is contained in:
Maruan Al-Shedivat 2021-11-25 20:36:47 -05:00
parent a0cfbbd1d3
commit 8de1ad4dee

View File

@ -5,4 +5,4 @@
{% endfor %}
{% endcapture %}
<img {% if class %}class="{{ class }}"{% endif %} src="{{ largest.path | relative_url }}" srcset="{{ srcset | strip_newlines }}/ {{ path }} {{ original.width }}w" {% if alt %}alt="{{ alt }}"{% endif %} {% if title %}title="{{ title }}"{% endif %} {% if zoomable %}data-zoomable{% endif %}/>
<img {% if class %}class="{{ class }}"{% endif %} src="{{ largest.path | relative_url }}" srcset="{{ srcset | strip_newlines }} {{ path | relative_url }} {{ original.width }}w" {% if alt %}alt="{{ alt }}"{% endif %} {% if title %}title="{{ title }}"{% endif %} {% if zoomable %}data-zoomable{% endif %}/>