aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestposts.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/latestposts.html')
-rw-r--r--templates/latestposts.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/latestposts.html b/templates/latestposts.html
new file mode 100644
index 0000000..e2dfa9f
--- /dev/null
+++ b/templates/latestposts.html
@@ -0,0 +1,13 @@
+<div class="panel" id="posts">
+ <h2>latest posts <a class="small-badge" href="/feed"><img class="small-badge" src="/static/atombadge.png"
+ alt="atom newsfeed"></a></h2>
+ <table id="post-list">
+ {% for blogpost in blogposts %}
+ <tr>
+ <td><a class="post-entry" href="/blog/{{ blogpost.file_name() }}">{{ blogpost.subject().unwrap_or("untitled")
+ }}<span class="post-date">{{
+ blogpost.published_at()|mytruncate(10) }}</span></a></td>
+ </tr>
+ {% endfor %}
+ </table>
+</div> \ No newline at end of file