diff options
Diffstat (limited to '')
-rw-r--r-- | templates/latestposts.html | 13 | ||||
-rw-r--r-- | templates/latestposts.html.tera | 10 |
2 files changed, 13 insertions, 10 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 diff --git a/templates/latestposts.html.tera b/templates/latestposts.html.tera deleted file mode 100644 index 11528a4..0000000 --- a/templates/latestposts.html.tera +++ /dev/null @@ -1,10 +0,0 @@ -<div class="panel" id="posts"> - <h2>latest posts <a class="small-badge" href="/feed"><img class="small-badge" src="/atombadge.png" alt="atom newsfeed"></a></h2> - <table id="post-list"> - {% for blogpost in blogposts %} - <tr> - <td><a class="post-entry" href="/blog/{{ blogpost.data.name }}">{{ 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 |