From 8392e377df2c9a52eb7e17da662fe3ba14a4e91e Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 16 Oct 2024 13:00:48 +0200 Subject: [PATCH] feat(pages+content): semantic html --- templates/page.html | 2 ++ templates/section.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/page.html b/templates/page.html index 607b56f..85923d9 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,6 +9,8 @@ {% endblock %} {% block main %} +

{{ page.title | safe }}

{{ page.content | safe }}

+
{% endblock %} diff --git a/templates/section.html b/templates/section.html index 1b6e71c..d027ec9 100644 --- a/templates/section.html +++ b/templates/section.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block main %} +
{{ section.content | markdown(inline = true) | safe }}
{% for sub in section.pages %} @@ -12,4 +13,5 @@ {% endfor %}
+
{% endblock %}