aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-06-21 19:32:55 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-06-21 19:32:55 +0100
commita508c3a7b49373d89a0522784a2a7e96b8d873e0 (patch)
tree57ef907af1caa80cb241df257cc7dfa5a3343963 /templates
parent14db008af73d25cc92ea6c0b1f3b1e0ef67920d1 (diff)
downloadblossom-a508c3a7b49373d89a0522784a2a7e96b8d873e0.tar.gz
blossom-a508c3a7b49373d89a0522784a2a7e96b8d873e0.tar.bz2
blossom-a508c3a7b49373d89a0522784a2a7e96b8d873e0.zip
implement latestposts widget
Diffstat (limited to 'templates')
-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