Sha256: 590cbb0199c7f72416fe89c975ac03465c2c1d644d3ee2606b4397f175f0d4c9
Contents?: true
Size: 1.16 KB
Versions: 13
Compression:
Stored size: 1.16 KB
Contents
{% assign sources = '' %} {% if include.img.src or include.img.path %} {% assign srcset = null %} {% if include.img.srcset %} {% capture srcset %}{% for hash in include.img.srcset %}{% assign tmp = hash[1] %}{% include_cached smart-url url=tmp %} {{ hash[0] }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% endif %} {% assign src = include.img.src | default:include.img.path %} {% capture sources %} src="{% include_cached smart-url url=src %}" {% if srcset %}srcset="{{ srcset | strip }}"{% endif %} {% if include.sizes %}sizes="{{ include.sizes | replace:' ', '' }}"{% endif %} {% endcapture %} {% else %} {% capture sources %} src="{% include_cached smart-url url=include.img %}" {% endcapture %} {% endif %} <img {{ sources }} {% if include.alt %}alt="{{ include.alt }}"{% endif %} {% if include.class %}class="{{ include.class }}"{% endif %} {% if include.property %}property="{{ include.property }}"{% endif %} {% if include.width %}width="{{ include.width }}"{% endif %} {% if include.height %}height="{{ include.height }}"{% endif %} {% if include.width and include.height %}loading="lazy"{% endif %} />
Version data entries
13 entries across 13 versions & 1 rubygems