34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
{% extends "index.html" %}
|
|
|
|
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="w3-content w3-padding w3-center">
|
|
<h1>{{ "Actualités" if category=="news" else "Offres d'emploi" }}</h1>
|
|
<div class="w3-row-padding">
|
|
{% for article in articles_page.object_list if article.category == category %}
|
|
<article class="w3-left-align w3-card w3-margin w3-margin-bottom-32">
|
|
<header class="w3-container w3-orange">
|
|
<time class="w3-right w3-margin-top" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time>
|
|
<h2 class=""><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
|
</header>
|
|
<div class="w3-container">
|
|
<p>{{ article.summary }}</p>
|
|
</div>
|
|
<footer class="w3-container">
|
|
<div class="w3-right">
|
|
<address class="w3-margin-bottom">Par
|
|
{% for author in article.authors %}{{ author }}{% endfor %}
|
|
</address>
|
|
</div>
|
|
</footer>
|
|
</article>
|
|
{% endfor %}
|
|
{% if articles_page.has_other_pages() %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|
|
|