implement latestposts widget

This commit is contained in:
cel 🌸 2023-06-21 19:32:55 +01:00
parent 14db008af7
commit a508c3a7b4
Signed by: cel
GPG Key ID: 48E29AF13B5F1349
1 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
<div class="panel" id="posts"> <div class="panel" id="posts">
<h2>latest posts <a class="badge" href="/feed.xml"><img class="badge" src="/rssbadge.png" alt="rss newsfeed"></a></h2> <h2>latest posts <!--<a class="badge" href="/feed.xml"><img class="badge" src="/rssbadge.png" alt="rss newsfeed"></a>--></h2>
<table id="post-list"> <table id="post-list">
{% for blogpost in blogposts %}
<tr> <tr>
<td><a class="post-entry" href="/thoughts/fedi">fedi<span class="post-date">2023-02-04</span></a></td> <td><a class="post-entry" href="/blog/{{ blogpost.subject }}">{{ blogpost.subject }}<span class="post-date">{{ blogpost.created_at | truncate(length=10, end="") }}</span></a></td>
</tr>
<tr>
<td><a class="post-entry" href="/thoughts/fedi">slaying<span class="post-date">2023-01-20</span></a></td>
</tr> </tr>
{% endfor %}
</table> </table>
</div> </div>