
Article can have a "ContentWarning" meta data that is taken into account. It is showed in the list of articles and on an article page The meta data of an article are moved at this end of an article in the list (e.g. index pages).
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% block page_title %}{{article.title|striptags }}{% endblock page_title %}
|
|
|
|
{% block content %}
|
|
<main>
|
|
<article>
|
|
<div class="title-block">
|
|
<h1 class="article">
|
|
{{ article.title }}
|
|
</h1>
|
|
<div class="subtitle">
|
|
{% if article.tags %}
|
|
{% for tag in article.tags %}
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
|
{% if loop.nextitem %}
|
|
<span>-</span>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<ul class="meta">
|
|
<li ><em>Publié le :</em> {{ article.locale_date }}</li>
|
|
{% if article.modified %}
|
|
<li><em>Modifié le :</em> {{ article.locale_modified }}</li>
|
|
{% endif %}
|
|
<li><em>Autaire :</em> {{ article.author }}</li>
|
|
</ul>
|
|
<hr>
|
|
{% if article.contentwarning %}
|
|
<div class="content-warning">
|
|
<div>: Content Warning :</div>
|
|
{{ article.contentwarning }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{{ article.content }}
|
|
</article>
|
|
</main>
|
|
{% endblock %}
|