ungleich-staticcms/templates/summary-page.html

41 lines
1 KiB
HTML
Raw Normal View History

2020-01-04 13:03:03 +00:00
{% extends "layout-2020.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block subtitle %}{{ this.subtitle }}{% endblock %}
{% block content %}
<div class="container">
2020-01-04 13:08:07 +00:00
{% for childpage in this.children %}
2020-01-04 13:03:03 +00:00
{% if loop.first %}
<div class="row mb-3">
{% endif %}
<div class="col-md-4 mb-3">
<div class="card">
2020-02-02 14:27:47 +00:00
<a href="{{ childpage|url }}">
2020-02-02 13:37:37 +00:00
{% if childpage.image %}
<img class="card-img-top" src="{{ childpage.image }}"
2020-02-02 14:27:47 +00:00
alt="{{ childpage.title }}">
2020-02-02 14:10:28 +00:00
{% else %}
2020-02-02 14:39:57 +00:00
<img class="card-img-top" src="/u/image/cards/placeholder.jpg"
2020-02-02 14:27:47 +00:00
alt="{{ childpage.title }}">
2020-02-02 13:37:37 +00:00
{% endif %}
2020-02-02 14:27:47 +00:00
</a>
2020-01-04 13:03:03 +00:00
<div class="card-body">
2020-01-04 13:08:07 +00:00
<h5 class="card-title">{{ childpage.title }}</h5>
<p class="card-text">{{ childpage.subtitle }}</p>
2020-01-04 13:03:03 +00:00
</div>
</div>
</div>
{% if loop.index is divisibleby 3 %}
</div>
<div class="row mb-3">
{% endif %}
{% if loop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}