feat: tag as title in tag page

This commit is contained in:
Ayo Ayco 2025-01-19 10:10:29 +01:00
parent 8f9db9d58a
commit 81a1de2c45
2 changed files with 11 additions and 5 deletions

View file

@ -68,6 +68,11 @@
} }
main { main {
h2 {
text-align: center;
text-transform: uppercase;
}
& ul.tags { & ul.tags {
list-style: none; list-style: none;
padding-left: 0; padding-left: 0;
@ -301,18 +306,19 @@
<a id="top"></a> <a id="top"></a>
<header> <header>
{% include "nav.html" %} {% include "nav.html" %}
<h1>{{ app.title }} / {{ tag }}</h1> <h1>{{ app.title }}</h1>
<p>{{ app.description }}</p> <p>{{ app.description }}</p>
</header> </header>
<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%}
{% with tags=tags %} {% with tags=tags %}
{% include "tag-pills.html" %} {% include "tag-pills.html" %}
{% endwith %} {% endwith %}
{% endif %} {% endif %} -->
<div class="back"> <div class="back">
<a href="{{url_for('threads.home')}}">Back</a> <a href="{{url_for('threads.home')}}">Back</a>
</div> </div>
<h2>{{ tag }}</h2>
{% for thread in threads %} {% for thread in threads %}
{% with is_tag=tag!=None, thread=thread, parent_id=thread.id, is_thread=threads|length > 1, server=app.server %} {% with is_tag=tag!=None, thread=thread, parent_id=thread.id, is_thread=threads|length > 1, server=app.server %}
{% include "card.html" %} {% include "card.html" %}

View file

@ -8,9 +8,9 @@
<div class="card_content" id="{{ thread.id }}"> <div class="card_content" id="{{ thread.id }}">
<div class="heading"> <div class="heading">
<h2 class="author" rel="author"> <h3 class="author" rel="author">
{{thread.account.display_name | safe}} {{thread.account.display_name | safe}}
</h2> </h3>
<div class="right_menu"> <div class="right_menu">
<a href="{{ thread.url }}" title="{{ thread.created_at }}"> <a href="{{ thread.url }}" title="{{ thread.created_at }}">