Sha256: fcb46b188ba2dbec3c93e00b2845801a130435a23a9ee7550e316f714e395e0a
Contents?: true
Size: 1.27 KB
Versions: 14
Compression:
Stored size: 1.27 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 slide.url contains 'https://' or slide.url contains 'http://' or url_first_char == '.' or url_first_char == '/' -%} {%- assign slide_url = slide.url -%} {%- else -%} {%- assign slide_url = slide.url | prepend: page.baseurl -%} {%- endif -%} <div> <a href="{{ slide_url }}" {%- if slide.new_tab == true %} target="_blank" rel="noopener noreferrer" {%- endif %}> <img {%- if forloop.first == true %} src="{{ page.baseurl }}{{ slide.image }}" {%- else %} src="{{ page.baseurl }}assets/img/placeholder_16to9.jpg" data-src="{{ page.baseurl }}{{ slide.image }}" {%- endif %} class="img-fluid hero-slider__slider--slide-img{% if slide.white_background %} hero-slider__slide-img--border{% endif %}" alt="{{ slide.alt-text | replace: '"', '"' }}"> </a> {%- if slide.text %} <div class="hero-slider__slider--heading-container text-center"> <h3 class="hero-slider__slider--slide-heading">{{ slide.text }}</h3> </div>{% endif %} </div> {% endfor %} </div> </div>
Version data entries
14 entries across 14 versions & 1 rubygems