feat: headings and divs

This commit is contained in:
Ayo Ayco 2025-01-18 17:01:54 +01:00
parent b2f84db279
commit cb22799658

View file

@ -282,7 +282,7 @@
<main class={{ "thread" if threads|length==1 else "home" }}> <main class={{ "thread" if threads|length==1 else "home" }}>
{% if tags is defined%} {% if tags is defined%}
<div class="featured-tags"> <div class="featured-tags">
<strong>Featured tags:</strong> <h2>Featured tags:</h2>
<ul class="tags"> <ul class="tags">
{% for tag in tags %} {% for tag in tags %}
<li><a href="{{ tag.url }}">#{{ tag.name }} ({{ tag.statuses_count }})</a></li> <li><a href="{{ tag.url }}">#{{ tag.name }} ({{ tag.statuses_count }})</a></li>
@ -293,22 +293,20 @@
<div class="back"> <div class="back">
<a href="{{url_for('threads.home')}}">Back</a> <a href="{{url_for('threads.home')}}">Back</a>
</div> </div>
<div> <h2>Featured threads:</h2>
<strong>Featured threads:</strong> {% for thread in threads %}
{% for thread in threads %} {% with thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %}
{% with thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %} {% include "card.html" %}
{% include "card.html" %} {% endwith %}
{% endwith %} {% if thread.descendants is defined %}
{% if thread.descendants is defined %} {% for descendant in thread.descendants %}
{% for descendant in thread.descendants %} {% with thread=descendant, parent_id=thread.id %}
{% with thread=descendant, parent_id=thread.id %} {% include "card.html" %}
{% include "card.html" %} {% endwith %}
{% endwith %} {% endfor %}
{% endfor %} {% endif %}
{% endif %} {% endfor %}
{% endfor %} <a href="#top">Top</a>
<a href="#top">Top</a>
</div>
</main> </main>
<footer> <footer>
<p> <p>