aboutsummaryrefslogtreecommitdiffstats
path: root/templates/latestposts.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/latestposts.html')
-rw-r--r--templates/latestposts.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/latestposts.html b/templates/latestposts.html
index e2dfa9f..b2ed2c5 100644
--- a/templates/latestposts.html
+++ b/templates/latestposts.html
@@ -1,10 +1,11 @@
<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>
+ <h2>{{ locale.text("latest-blogposts").unwrap() }} <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")
+ <td><a class="post-entry" href="/blog/{{ blogpost.file_name() }}">{{
+ blogpost.subject().unwrap_or(locale.text("untitled").unwrap().as_str())
}}<span class="post-date">{{
blogpost.published_at()|mytruncate(10) }}</span></a></td>
</tr>