Sha256: c1cd4637820a8b6b02124e7f4d2806d67dd8f416b18a18a92dd91cee1f443f75
Contents?: true
Size: 836 Bytes
Versions: 25
Compression:
Stored size: 836 Bytes
Contents
{%- comment -%} Image component @param :src [String] @param :alt [String] @param :width [Integer] @param :height [Integer] @param :class [String] @param :img_class [String] {%- endcomment -%} <picture class="{{ include.class }}"> <source srcset=" {%- for pixel_density in site.data.theme.pixel_densities %} {% if include.width %} {%- assign w = include.width | times: pixel_density -%} {% elsif include.height %} {%- assign h = include.height | times: pixel_density -%} {% endif %} {{- include.src | thumbnail: w, h | uri_escape }} {{ pixel_density }}x, {% endfor -%} " /> <img class="{{ include.img_class }}" src="{{ include.src | thumbnail: include.width, include.height | uri_escape }}" alt="{{ include.alt | escape_once }}" /> </picture>
Version data entries
25 entries across 25 versions & 2 rubygems