pyro/templates/article.html
Irrlicht 159d74607e [style][template] Minor styling and template change
- Article : put enclosing div for article tags inside the jinja if
- Minor tweaks to improve readability and separation of objects
2025-09-16 05:44:53 +02:00

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>
{% if article.tags or article.subtitle %}
<div class="subtitle">
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% if loop.nextitem %}
<span>-</span>
{% endif %}
{% endfor %}
</div>
{% endif %}
</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 %}