Sha256: 99357cb282b29b1a10bb37bc63981cca3eabf97e034d4911ebe865581f24373a
Contents?: true
Size: 1.69 KB
Versions: 2
Compression:
Stored size: 1.69 KB
Contents
<div class="product-images"> <ul id="lightSlider"> {% assign product-images-groups = "product-images, base-product-images" | split: ", " %} {% for product-image-group in product-images-groups %} {% if page.resources[product-image-group].quantity %} {% assign images-count = page.resources[product-image-group].quantity %} {% elsif product-image-group == 'product-images' %} {% assign images-count = 1 %} {% else %} {% assign images-count = 0 %} {% endif %} {% for product-image in (1..images-count) %} {% assign page-categories-size = page.categories | size %} {% if page-categories-size >= 1 %} {% assign page-categories = page.categories | join: "/" | append: "/" %} {% endif %} {% if forloop.index == 1 %} {% assign image-num = '' %} {% elsif forloop.index < 10 %} {% assign image-num = forloop.index | prepend: "_0" %} {% else %} {% assign image-num = forloop.index | prepend: "_" %} {% endif %} {% capture product-image-url %} {{ site.amazon-s3 }}/assets/img/catalog/thumbnails/{{ page.collection }}/{{ page-categories }}{% if page.resources[product-image-group].model %}{{ page.resources[product-image-group].model | downcase }}{% else %}{{ page.title | downcase }}{% endif %}{{ image-num | append: ".png" }} {% endcapture %} <li data-thumb="{{ product-image-url }}"> <img src="{{ product-image-url }}" class="img-center" alt="{% if i18n-title %}{{ i18n-title }}{% else %}{{ page.title }}{% endif %}" /> </li> {% endfor %} {% endfor %} </ul> </div> {% include components/sliders/lightslider.js %}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-marketing-1.0.1 | _includes/components/sliders/lightslider.html |
jekyll-theme-marketing-1.0.0 | _includes/components/sliders/lightslider.html |