feat: tag as title in tag page
This commit is contained in:
parent
8f9db9d58a
commit
81a1de2c45
2 changed files with 11 additions and 5 deletions
|
@ -68,6 +68,11 @@
|
|||
}
|
||||
|
||||
main {
|
||||
h2 {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
& ul.tags {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
@ -301,18 +306,19 @@
|
|||
<a id="top"></a>
|
||||
<header>
|
||||
{% include "nav.html" %}
|
||||
<h1>{{ app.title }} / {{ tag }}</h1>
|
||||
<h1>{{ app.title }}</h1>
|
||||
<p>{{ app.description }}</p>
|
||||
</header>
|
||||
<main class={{ "thread" if threads|length==1 else "home" }}>
|
||||
{% if tags is defined%}
|
||||
<!-- {% if tags is defined%}
|
||||
{% with tags=tags %}
|
||||
{% include "tag-pills.html" %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% endif %} -->
|
||||
<div class="back">
|
||||
<a href="{{url_for('threads.home')}}">Back</a>
|
||||
</div>
|
||||
<h2>{{ tag }}</h2>
|
||||
{% 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" %}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
<div class="card_content" id="{{ thread.id }}">
|
||||
<div class="heading">
|
||||
<h2 class="author" rel="author">
|
||||
<h3 class="author" rel="author">
|
||||
{{thread.account.display_name | safe}}
|
||||
</h2>
|
||||
</h3>
|
||||
|
||||
<div class="right_menu">
|
||||
<a href="{{ thread.url }}" title="{{ thread.created_at }}">
|
||||
|
|
Loading…
Reference in a new issue