feat: back button from full thread page
This commit is contained in:
parent
4ea9637e3a
commit
cea96e6fe0
2 changed files with 21 additions and 2 deletions
|
@ -23,6 +23,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
main .back {
|
||||
padding:1em 0 0;
|
||||
|
||||
& a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
& a::before {
|
||||
content: '\25C0';
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
@ -102,15 +114,22 @@
|
|||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="/">go home</a></nav>
|
||||
<nav><a href="/">go home</a></nav>
|
||||
<h1>{{ app.title }}</h1>
|
||||
<p>{{ app.description }}</p>
|
||||
</header>
|
||||
<main>
|
||||
{% if threads|length == 1 and threads[0].descendants %}
|
||||
<div class="back">
|
||||
<a href="{{url_for('threads.home')}}">Back</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% for thread in threads %}
|
||||
<li class="card">
|
||||
|
||||
|
||||
<div class="card_avatar">
|
||||
{% if thread.account.avatar is defined %}
|
||||
<img class="avatar" src="{{thread.account.avatar}}" />
|
||||
|
|
|
@ -8,7 +8,7 @@ server = 'https://social.ayco.io'
|
|||
thread_ids = ['112319729193615365', '112258065967208438']
|
||||
app = {
|
||||
"title":"Ayo's Threads",
|
||||
"description": "Incubator for thoughts before they become a blog."
|
||||
"description": "Release candidate for thoughts before they become a blog."
|
||||
}
|
||||
attribution = {
|
||||
"owner": "Ayo Ayco",
|
||||
|
|
Loading…
Reference in a new issue