aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestposts.html.tera
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/latestposts.html.tera9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/latestposts.html.tera b/templates/latestposts.html.tera
index 101fbb9..8ab5406 100644
--- a/templates/latestposts.html.tera
+++ b/templates/latestposts.html.tera
@@ -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> \ No newline at end of file