diff options
author | cel 🌸 <cel@blos.sm> | 2024-02-10 06:54:25 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-02-10 06:54:25 +0000 |
commit | 88fa09755ff31b39b0454f0da58bc41a90263e89 (patch) | |
tree | 31e91e27324366bbea20b4af2a17ec10f73322e9 /templates/latestposts.html | |
parent | 205a71efa9f60938c86d57bba07f6d33b21790a2 (diff) | |
download | blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.gz blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.bz2 blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.zip |
add initial localisation
Diffstat (limited to '')
-rw-r--r-- | templates/latestposts.html | 7 |
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> |