diff --git a/_includes/figure.html b/_includes/figure.html index bffb2a225394..e67e8043f6c4 100644 --- a/_includes/figure.html +++ b/_includes/figure.html @@ -1,27 +1,33 @@ -{%- assign path = include.path | remove: ".jpg" | remove: ".jpeg" | remove: ".png" | remove: ".tiff" -%} +{%- assign img_path = include.path | remove: ".jpg" | remove: ".jpeg" | remove: ".png" | remove: ".tiff" -%}
{% if site.imagemagick.enabled %} {% for i in site.imagemagick.widths -%} - + {% endfor -%} {% endif %} + src="{{ include.path | relative_url }}" + {% if include.class %}class="{{ include.class }}"{% endif %} + {% if include.width %}width="{{ include.width }}"{% else %}width="auto"{% endif %} + {% if include.height %}height="{{ include.height }}"{% else %}height="auto"{% endif %} + {% if include.min-width %}min-width="{{ include.min-width }}"{% endif %} + {% if include.min-height %}min-height="{{ include.min-height }}"{% endif %} + {% if include.max-width %}max-width="{{ include.max-width }}"{% endif %} + {% if include.max-height %}height="{{ include.max-height }}"{% endif %} + {% if include.alt %}alt="{{ include.alt }}"{% endif %} + {% if include.title %}title="{{ include.title }}"{% endif %} + {% if include.zoomable %}data-zoomable{% endif %} + onerror="this.onerror=null; $('.responsive-img-srcset').remove();" + />