Sha256: ab32271590efad20733edc339c47ba79b0d212c196aba8e0914dc7342927eaa1

Contents?: true

Size: 1.62 KB

Versions: 38

Compression:

Stored size: 1.62 KB

Contents

<div class="row">
  <div class="col hero-slider__slider">
  {% for slide in page.slides %}
  {% assign url_first_char = slide.url | slice: 0 %}
    {% if forloop.first == true %}
    <div>
      <a {% if slide.url contains 'https://' or slide.url contains 'http:// %}target="_blank" href="{{ slide.url }}"{% elsif url_first_char == '.' or url_first_char == '/' %}href="{{ slide.url }}"{% else %}href="{{ page.baseurl }}{{ slide.url }}{% endif %}"><img src="{{page.baseurl}}{{slide.image}}" class="img-fluid hero-slider__slider--slide-img {% if slide.white_background %} hero-slider__slide-img--border{% endif %}" alt="{{slide.alt-text}}" /></a>
      {% if slide.text and slide.text != '' %}<div class="hero-slider__slider--heading-container text-center">
        <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3>
      </div>{% endif %}
    </div>
    {% else %}
    <div>
      <a {% if slide.url contains 'https://' or slide.url contains 'http:// %}target="_blank" href="{{ slide.url }}"{% elsif url_first_char == '.' or url_first_char == '/' %}href="{{ slide.url }}"{% else %}href="{{ page.baseurl }}{{ slide.url }}{% endif %}"><img src="assets/img/placeholder.png" data-src="{{page.baseurl}}{{slide.image}}" class="img-fluid hero-slider__slider--slide-img {% if slide.white_background %} hero-slider__slide-img--border{% endif %}" alt="{{slide.alt-text}}" /></a>
      {% if slide.text and slide.text != '' %}<div class="hero-slider__slider--heading-container text-center">
        <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3>
      </div>{% endif %}
    </div>
    {% endif %}
  {% endfor %}
  </div>
</div>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
kcc-gem-theme-1.61.46 _includes/hero-slider.html
kcc-gem-theme-1.61.45 _includes/hero-slider.html
kcc-gem-theme-1.60.45 _includes/hero-slider.html
kcc-gem-theme-1.60.44 _includes/hero-slider.html
kcc-gem-theme-1.60.43 _includes/hero-slider.html
kcc-gem-theme-1.60.42 _includes/hero-slider.html
kcc-gem-theme-1.60.41 _includes/hero-slider.html
kcc-gem-theme-1.60.40 _includes/hero-slider.html
kcc-gem-theme-1.60.39 _includes/hero-slider.html
kcc-gem-theme-1.60.38 _includes/hero-slider.html
kcc-gem-theme-1.59.38 _includes/hero-slider.html
kcc-gem-theme-1.59.37 _includes/hero-slider.html
kcc-gem-theme-1.58.37 _includes/hero-slider.html
kcc-gem-theme-1.58.36 _includes/hero-slider.html
kcc-gem-theme-1.57.36 _includes/hero-slider.html
kcc-gem-theme-1.56.36 _includes/hero-slider.html
kcc-gem-theme-1.55.36 _includes/hero-slider.html
kcc-gem-theme-1.54.36 _includes/hero-slider.html
kcc-gem-theme-1.53.36 _includes/hero-slider.html
kcc-gem-theme-1.53.35 _includes/hero-slider.html