feat(pages+content): semantic html

This commit is contained in:
Fabrice Mouhartem 2024-10-16 13:00:48 +02:00
parent bd33f68440
commit 8392e377df
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@
{% endblock %} {% endblock %}
{% block main %} {% block main %}
<article>
<h1>{{ page.title | safe }}</h1> <h1>{{ page.title | safe }}</h1>
<p>{{ page.content | safe }}</p> <p>{{ page.content | safe }}</p>
</article>
{% endblock %} {% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block main %} {% block main %}
<main>
{{ section.content | markdown(inline = true) | safe }} {{ section.content | markdown(inline = true) | safe }}
<div class="pages"> <div class="pages">
{% for sub in section.pages %} {% for sub in section.pages %}
@ -12,4 +13,5 @@
</article> </article>
{% endfor %} {% endfor %}
</div> </div>
</main>
{% endblock %} {% endblock %}