
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).
16 lines
592 B
HTML
16 lines
592 B
HTML
<article>
|
|
<header>
|
|
<h1 class="post"><a class="post-title" href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
|
|
{% if article.contentwarning %}
|
|
<div class="content-warning">
|
|
CW : {{ article.contentwarning }}
|
|
</div>
|
|
{% endif %}
|
|
</header>
|
|
<div class="content">
|
|
{{ article.summary }}
|
|
</div>
|
|
<footer class="meta">
|
|
<em>Publié par {{ article.author }}, dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> le {{ article.locale_date }}</em>
|
|
</footer>
|
|
</article>
|