ungleich-staticcms/templates/products.html

33 lines
792 B
HTML
Raw Normal View History

2019-12-31 00:39:46 +00:00
{% extends "layout-2020.html" %}
2019-12-30 20:40:48 +00:00
{% block title %}{{ this.title }}{% endblock %}
2019-12-31 00:50:52 +00:00
{% block subtitle %}{{ this.subtitle }}{% endblock %}
2019-12-30 20:46:33 +00:00
2019-12-31 00:50:52 +00:00
{% block content %}
2019-12-30 22:09:33 +00:00
2019-12-30 20:40:48 +00:00
<div class="container">
2019-12-31 00:39:46 +00:00
{% for product in this.children %}
{% if loop.first %}
<div class="row mb-3">
{% endif %}
2019-12-31 00:50:52 +00:00
<div class="col-md-4 mb-3">
2019-12-31 00:39:46 +00:00
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ product.title }}</h5>
<p class="card-text">{{ product.subtitle }}</p>
<a class="btn btn-primary" href="{{ product|url }}">Check it out</a>
2019-12-30 22:09:33 +00:00
</div>
</div>
2019-12-30 20:40:48 +00:00
</div>
2019-12-31 00:39:46 +00:00
{% if loop.index is divisibleby 3 %}
</div>
2019-12-31 00:50:52 +00:00
<div class="row mb-3">
2019-12-31 00:39:46 +00:00
{% endif %}
{% if loop.last %}
</div>
{% endif %}
{% endfor %}
2019-12-30 22:09:33 +00:00
</div>
2019-12-30 20:40:48 +00:00
</div>
</div>
{% endblock %}