refonte/themes/afpy/templates/category.html

31 lines
987 B
HTML

{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
{% block content %}
<section>
<h2>{{ "Actualités" if category=="news" else "Offres d'emploi" }}</h2>
{% for article in articles_page.object_list if article.category == category %}
<article>
<section>
<time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time>
<h3><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h3>
</section>
<p>{{ article.summary }}</p>
<section>
<p>Par</p>
<ul>
{% for author in article.authors %}
<li>{{ author }}</li>
{% endfor %}
</ul>
</section>
</article>
{% endfor %}
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section>
{% endblock %}