ungleich-staticcms/templates/products.html

33 lines
736 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:39:46 +00:00
{% block content %}
2019-12-30 20:46:33 +00:00
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 %}
<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>
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>
<hr/>
<div class="row">
{% 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 %}