pyro/templates/article.html
Freyja Wildes a536012563 [templates] Fix issues with HTML to comply with W3C validator suggestions
- In index, h1 tag are replaced with h2 tags
- Remove orphan span tag for the pagination HTML
- Remove all unnecessary trailing slash for tag like link
- Remove stary img end tag for banner
- Use configuration value for the lang attribute on the html tag
- in article, make title be h2 tags instead of h1 tags and change CSS
  rules to match
2025-04-26 00:16:58 +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">
<h2 class="article">
{{ article.title }}
</h2>
<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 %}