ungleich-staticcms/templates/summary-page.html

67 lines
1.8 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 %}
{# Setup default settings for the overview #}
{% if childpage.header_background_color %}
{% set div_style = 'background-color:' + childpage.header_background_color + ';' %}
{% else %}
{% set div_style = 'background-color: #6FB0E5;' %}
{% endif %}
{% if childpage.header_text_color %}
{% set div_classes = childpage.header_text_color %}
{% else %}
{% set div_classes = 'text-light' %}
{% endif %}
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 13:37:37 +00:00
{% if childpage.image %}
<a href="{{ childpage|url }}">
<img class="card-img-top" src="{{ childpage.image }}"
alt="{{ childpage.title }}">
</a>
2020-02-02 14:10:28 +00:00
{% else %}
<div style="{{ div_style }} font-weight: bold; padding-left:
12px; padding-right: 6px; text-transform: uppercase;"
2020-04-29 20:53:07 +00:00
class="{{ div_classes }} display-4 headlinebold">
&nbsp;<br/>
2020-07-04 16:20:12 +00:00
<a href="{{ childpage|url }}" style="font-color: white;">
{{ childpage.title }}<sup style="font-weight:
normal;">≠</sup>
</a>
<br/>
&nbsp;<br/>
</div>
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 %}