ungleich-staticcms/templates/products.html
2019-12-31 01:39:46 +01:00

32 lines
736 B
HTML

{% extends "layout-2020.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block content %}
<div class="container">
{% for product in this.children %}
{% if loop.first %}
<div class="row mb-3">
{% endif %}
<div class="col-md-4">
<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>
</div>
</div>
</div>
{% if loop.index is divisibleby 3 %}
</div>
<hr/>
<div class="row">
{% endif %}
{% if loop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}