Sha256: c3b51dd8c25de057d7b48c47cb2a58863ff1b4e2430f3fe809a46593dd98ac5f

Contents?: true

Size: 1.52 KB

Versions: 36

Compression:

Stored size: 1.52 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>
      <div class="hero-slider__slider--heading-container text-center">
        <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3>
      </div>
    </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>
      <div class="hero-slider__slider--heading-container text-center">
        <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3>
      </div>
    </div>
    {% endif %}
  {% endfor %}
  </div>
</div>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
kcc-gem-theme-1.44.25 _includes/hero-slider.html
kcc-gem-theme-1.44.24 _includes/hero-slider.html
kcc-gem-theme-1.44.23 _includes/hero-slider.html
kcc-gem-theme-1.44.22 _includes/hero-slider.html
kcc-gem-theme-1.43.22 _includes/hero-slider.html
kcc-gem-theme-1.43.21 _includes/hero-slider.html
kcc-gem-theme-1.42.21 _includes/hero-slider.html
kcc-gem-theme-1.42.20 _includes/hero-slider.html
kcc-gem-theme-1.41.20 _includes/hero-slider.html
kcc-gem-theme-1.41.19 _includes/hero-slider.html
kcc-gem-theme-1.41.18 _includes/hero-slider.html
kcc-gem-theme-1.40.18 _includes/hero-slider.html
kcc-gem-theme-1.39.18 _includes/hero-slider.html
kcc-gem-theme-1.38.18 _includes/hero-slider.html
kcc-gem-theme-1.38.17 _includes/hero-slider.html
kcc-gem-theme-1.38.16 _includes/hero-slider.html
kcc-gem-theme-1.37.16 _includes/hero-slider.html
kcc-gem-theme-1.36.16 _includes/hero-slider.html
kcc-gem-theme-1.35.16 _includes/hero-slider.html
kcc-gem-theme-1.35.15 _includes/hero-slider.html