grav-theme-libretic/templates/modular/features.html.twig

27 lines
947 B
Twig

<div class="modular-row features {{ page.header.class}}">
{{ content|raw }}
{% for button in page.header.buttons %}
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
{% endfor %}
<div class="feature-items">
{% for feature in page.header.features %}
<div class="feature">
{% if feature.icon %}
<i class="fa fa-fw fa-{{ feature.icon }}"></i>
<div class="feature-content icon-offset">
{% else %}
<div class="feature-content">
{% endif %}
{% if feature.header %}
<h4>{{ feature.header }}</h4>
{% endif %}
{% if feature.text %}
<p>{{ feature.text }}</p>
<p><a href="{{ feature.linkurl }}">{{ feature.linktext }}</a></p>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>