Guide_3DS/_includes/feature_row

51 lines
1.4 KiB
Text
Raw Normal View History

2016-10-30 01:02:14 +02:00
{% if include.id %}
2017-09-28 23:42:38 +02:00
{% assign feature_row = page[include.id] %}
2016-10-30 01:02:14 +02:00
{% else %}
{% assign feature_row = page.feature_row %}
{% endif %}
<div class="feature__wrapper">
{% for f in feature_row %}
{% if f.url contains "://" %}
{% capture f_url %}{{ f.url }}{% endcapture %}
{% else %}
2016-11-23 02:29:35 +01:00
{% capture f_url %}{{ f.url | absolute_url }}{% endcapture %}
2016-10-30 01:02:14 +02:00
{% endif %}
<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=
{% if f.image_path contains "://" %}
"{{ f.image_path }}"
{% else %}
2016-11-23 02:29:35 +01:00
"{{ f.image_path | absolute_url }}"
2016-10-30 01:02:14 +02:00
{% endif %}
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
</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 %}
<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>
{% endif %}
</div>
</div>
</div>
{% endfor %}
2016-11-23 02:29:35 +01:00
</div>