1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/theme/templates/category.html

53 lines
1.4 KiB
HTML
Raw Normal View History

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-08-27 15:53:04 +01:00
<h1 class="section-heading">{{ category.name|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 %}
<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-28 16:36:16 +01:00
<div class="media category">
<div class="media-left">
{% if article.image %}
<div class="image" data-image="{{ article.image }}"></div>
{% endif %}
</div>
2016-08-08 21:09:08 +01:00
<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 %}