fix(article.html): clean up redundant tag wrapping

Consolidated opening and closing tags for text elements, removing unnecessary line breaks. This improves readability and reduces the complexity of the HTML structure, ensuring better maintainability. No functional changes are introduced.
This commit is contained in:
Kumi 2024-09-19 14:22:35 +02:00
parent 87a261d7ef
commit 2ece00e255
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -9,9 +9,7 @@
{% for paragraph in page.content %}
{% for child in paragraph.children %}
{% if child.__class__.__name__ == 'Text' %}
<{{ child.type | lower }}>
{{ child.content }}
</{{ child.type | lower }}>
<{{ child.type | lower }}>{{ child.content }}</{{ child.type | lower }}>
{% elif child.__class__.__name__ == 'Image' %}
<p>
<img src="{{ child.src }}" alt="{{ child.alt }}" width="{{ child.width }}" height="{{ child.height }}">