2022-05-14 20:45:28 +00:00
|
|
|
{% if include.id %}
|
|
|
|
{% assign feature_row = page[include.id] %}
|
|
|
|
{% else %}
|
|
|
|
{% assign feature_row = page.feature_row %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="feature__wrapper">
|
|
|
|
|
|
|
|
{% for f in feature_row %}
|
|
|
|
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
|
|
|
|
<div class="archive__item">
|
|
|
|
{% if f.image_path %}
|
|
|
|
<div class="archive__item-teaser">
|
2022-05-28 21:50:18 +00:00
|
|
|
<a href="{{ f.url | relative_url }}">
|
|
|
|
<img src="{{ f.image_path | relative_url }}"
|
|
|
|
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
|
|
|
|
</a>
|
2022-05-14 20:45:28 +00:00
|
|
|
{% if f.image_caption %}
|
|
|
|
<span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-05-18 12:08:57 +00:00
|
|
|
<div style="text-align:center;content-align:center">
|
2022-05-14 20:45:28 +00:00
|
|
|
<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 %}
|
|
|
|
<p><a href="{{ f.url | relative_url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-05-18 12:08:57 +00:00
|
|
|
</div>
|
2022-05-14 20:45:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|