Sha256: 69e279e9d2a9b5dea93ca6aa68595aed69fc07398ee5efd7e1bcfe15ca22b375
Contents?: true
Size: 1010 Bytes
Versions: 12
Compression:
Stored size: 1010 Bytes
Contents
{% assign url = "/img/" %} {% if page.collection %}{% assign url = url | prepend: page.collection | prepend: '/' %}{% endif %} {% assign url = url | prepend: site.github.url %} {% if include.srcset %} {% assign srcseturl = "/img/" %} {% if page.collection %}{% assign srcseturl = srcseturl | prepend: page.collection | prepend: '/' %}{% endif %} {% assign out = "" %} {% assign srcsetsrces = include.srcset | split: ", " %} {% for src in srcsetsrces %} {% unless forloop.last %} {% assign out = out | append: srcseturl | append: src | append: ", " %} {% else %} {% assign out = out | append: srcseturl | append: src %} {% endunless%} {% endfor %} {% endif %} <img src="{{url}}{{include.src}}"{% if include.srcset %} srcset="{{out}}"{% endif %} alt="{{include.alt}}"{% if include.class %} class="{% assign classes = include.class | split: " " %}{% for class in classes %} {{ class }}{% endfor %}"{% endif %}{% if include.float %} style="float: {{include.float}};"{% endif %}>
Version data entries
12 entries across 12 versions & 1 rubygems