2016-05-27 23:19:03 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block htmltitle %}
|
2016-06-14 13:32:24 +01:00
|
|
|
{{ category|title }}
|
2016-05-27 23:19:03 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-06-12 11:34:20 +01:00
|
|
|
{% block metadata %}
|
2016-07-29 08:09:02 +01:00
|
|
|
{{ page.metatags }}
|
2016-06-12 11:34:20 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-05-27 23:19:03 +01:00
|
|
|
{% block content %}
|
|
|
|
<section class="bg-primary">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 text-center">
|
2016-07-01 09:18:55 +01:00
|
|
|
<h1 class="section-heading">{{ category.name|format_title }}</h1>
|
2016-05-27 23:19:03 +01:00
|
|
|
<hr class="light">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2016-06-26 21:46:02 +01:00
|
|
|
{% if category.page.content %}
|
2016-06-26 11:57:22 +01:00
|
|
|
<section>
|
|
|
|
<div class="container">
|
|
|
|
{{ category.page.content }}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
2016-06-26 21:46:02 +01:00
|
|
|
{% if not category.page.hide_list %}
|
2016-07-31 22:29:22 +01:00
|
|
|
<section>
|
|
|
|
<div class="container">
|
2016-06-26 21:46:02 +01:00
|
|
|
<div class="row no-gutter">
|
2016-08-06 14:35:55 +01:00
|
|
|
{% for article in articles|sort(attribute="title") %}
|
2016-08-08 21:09:08 +01:00
|
|
|
<div class="media categories">
|
|
|
|
{% if article.image %}
|
|
|
|
<div class="media-left">
|
|
|
|
<a href="/{{ article.url }}">
|
|
|
|
<img class="media-object" src="{{ article.image }}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="media-body">
|
|
|
|
<a href="/{{ article.url }}">
|
|
|
|
<h4 class="media-heading">{{ article.title }}</h4>
|
|
|
|
</a>
|
|
|
|
<p>{{ article.summary|striptags|e }}</p>
|
|
|
|
</div>
|
2016-06-26 21:46:02 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2016-05-27 23:19:03 +01:00
|
|
|
</div>
|
2016-06-26 21:46:02 +01:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
2016-05-27 23:19:03 +01:00
|
|
|
{% endblock %}
|