From 81a1de2c455e81dcba42041b0efafd21ac4aa2c8 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 19 Jan 2025 10:10:29 +0100 Subject: [PATCH] feat: tag as title in tag page --- templates/_tag.html | 12 +++++++++--- templates/card.html | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/templates/_tag.html b/templates/_tag.html index 59ca16b..955fc6d 100644 --- a/templates/_tag.html +++ b/templates/_tag.html @@ -68,6 +68,11 @@ } main { + h2 { + text-align: center; + text-transform: uppercase; + } + & ul.tags { list-style: none; padding-left: 0; @@ -301,18 +306,19 @@
{% include "nav.html" %} -

{{ app.title }} / {{ tag }}

+

{{ app.title }}

{{ app.description }}

- {% if tags is defined%} + +

{{ tag }}

{% for thread in threads %} {% with is_tag=tag!=None, thread=thread, parent_id=thread.id, is_thread=threads|length > 1, server=app.server %} {% include "card.html" %} diff --git a/templates/card.html b/templates/card.html index 392f5b1..e9904cc 100644 --- a/templates/card.html +++ b/templates/card.html @@ -8,9 +8,9 @@
- +