Sha256: b66695c59aaeb99168543f188ad354fbea9d6b6cf5d2d5629f53d03d57a12ea5

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

{% if include.img.src or include.img.srcset %}
  {% assign srcset = '' %}

  {% if include.img.srcset %}
    {% capture srcset %}
      {% for hash in include.img.srcset %}{{ hash[1]}} {{ hash[0] }}{% unless forloop.last %},{% endunless %}{% endfor %}
    {% endcapture %}
  {% endif %}

  <img
    class="{{ include.class }}"
    alt="{{ include.alt }}"
    src="{{ include.img.src }}"
    srcset="{{ srcset | strip }}"
    sizes="{{ include.sizes }}"
  />
{% else %}
  <img
    class="{{ include.class }}"
    alt="{{ include.alt }}"
    src="{{ include.img }}"
  />
{% endif %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-6.3.0 _includes/srcset-img.html
jekyll-theme-hydejack-6.2.0 _includes/srcset-img.html
jekyll-theme-hydejack-6.1.0 _includes/srcset-img.html
jekyll-theme-hydejack-6.0.0 _includes/srcset-img.html
jekyll-theme-hydejack-6.0.0.pre.beta3 _includes/srcset-img.html
jekyll-theme-hydejack-6.0.0.pre.beta2 _includes/srcset-img.html
jekyll-theme-hydejack-6.0.0.pre.alpha _includes/srcset-img.html