implement latestposts widget
This commit is contained in:
parent
14db008af7
commit
a508c3a7b4
|
@ -1,11 +1,10 @@
|
|||
<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">
|
||||
{% for blogpost in blogposts %}
|
||||
<tr>
|
||||
<td><a class="post-entry" href="/thoughts/fedi">fedi<span class="post-date">2023-02-04</span></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="post-entry" href="/thoughts/fedi">slaying<span class="post-date">2023-01-20</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>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
Loading…
Reference in New Issue