2016-03-24 20:28:29 +01:00
|
|
|
{% if include.id %}
|
2017-09-05 03:35:09 +02:00
|
|
|
{% assign feature_row = page[include.id] %}
|
2016-03-24 20:28:29 +01:00
|
|
|
{% else %}
|
|
|
|
{% assign feature_row = page.feature_row %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="feature__wrapper">
|
|
|
|
|
|
|
|
{% for f in feature_row %}
|
2016-04-14 16:46:33 +02:00
|
|
|
|
2016-06-03 17:59:19 +02:00
|
|
|
{% if f.url contains "://" %}
|
2016-04-14 16:46:33 +02:00
|
|
|
{% capture f_url %}{{ f.url }}{% endcapture %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
{% capture f_url %}{{ f.url | relative_url }}{% endcapture %}
|
2016-04-14 16:46:33 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2016-03-24 20:28:29 +01:00
|
|
|
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
|
|
|
|
<div class="archive__item">
|
|
|
|
{% if f.image_path %}
|
|
|
|
<div class="archive__item-teaser">
|
|
|
|
<img src=
|
2016-06-03 17:59:19 +02:00
|
|
|
{% if f.image_path contains "://" %}
|
2016-03-24 20:28:29 +01:00
|
|
|
"{{ f.image_path }}"
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
"{{ f.image_path | relative_url }}"
|
2016-03-24 20:28:29 +01:00
|
|
|
{% endif %}
|
|
|
|
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
|
2018-05-15 21:41:45 +02:00
|
|
|
{% if f.image_caption %}
|
|
|
|
<span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
|
|
|
|
{% endif %}
|
2016-03-24 20:28:29 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="archive__item-body">
|
|
|
|
{% if f.title %}
|
|
|
|
<h2 class="archive__item-title">{{ f.title }}</h2>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if f.excerpt %}
|
|
|
|
<div class="archive__item-excerpt">
|
|
|
|
{{ f.excerpt | markdownify }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if f.url %}
|
2016-07-29 18:16:53 +02:00
|
|
|
<p><a href="{{ f_url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
|
2016-03-24 20:28:29 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|