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:
parent
87a261d7ef
commit
2ece00e255
1 changed files with 1 additions and 3 deletions
|
@ -9,9 +9,7 @@
|
||||||
{% for paragraph in page.content %}
|
{% for paragraph in page.content %}
|
||||||
{% for child in paragraph.children %}
|
{% for child in paragraph.children %}
|
||||||
{% if child.__class__.__name__ == 'Text' %}
|
{% if child.__class__.__name__ == 'Text' %}
|
||||||
<{{ child.type | lower }}>
|
<{{ child.type | lower }}>{{ child.content }}</{{ child.type | lower }}>
|
||||||
{{ child.content }}
|
|
||||||
</{{ child.type | lower }}>
|
|
||||||
{% elif child.__class__.__name__ == 'Image' %}
|
{% elif child.__class__.__name__ == 'Image' %}
|
||||||
<p>
|
<p>
|
||||||
<img src="{{ child.src }}" alt="{{ child.alt }}" width="{{ child.width }}" height="{{ child.height }}">
|
<img src="{{ child.src }}" alt="{{ child.alt }}" width="{{ child.width }}" height="{{ child.height }}">
|
||||||
|
|
Loading…
Reference in a new issue