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

27 lines
947 B
Twig
Raw Normal View History

2015-01-15 19:15:54 +01:00
<div class="modular-row features {{ page.header.class}}">
2020-12-13 01:32:27 +01:00
{{ content|raw }}
2015-01-15 19:15:54 +01:00
{% 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>