aboutsummaryrefslogtreecommitdiffstats
path: root/templates/blogpost-panel.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blogpost-panel.html')
-rw-r--r--templates/blogpost-panel.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/blogpost-panel.html b/templates/blogpost-panel.html
index 45117b6..2871407 100644
--- a/templates/blogpost-panel.html
+++ b/templates/blogpost-panel.html
@@ -1,6 +1,7 @@
<div class="panel content blogpost">
- <h1 class="title">{{ blogpost.subject().unwrap_or("untitled") }}</h1>
- <h2 class="created-at">{{ blogpost.published_at() }} <a href="/blog/{{ blogpost.file_name() }}">permalink</a></h2>
+ <h1 class="title">{{ blogpost.subject().unwrap_or(locale.text("untitled").unwrap().as_str()) }}</h1>
+ <h2 class="created-at">{{ blogpost.published_at() }} <a href="/blog/{{ blogpost.file_name() }}">{{
+ locale.text("permalink").unwrap() }}</a></h2>
<div class="tags">{% for tag in blogpost.tags() %}{% let tag = tag.to_string() %}<a
class="tag {% if filter_tags.contains(tag) %}active{% endif %}" href="/blog?filter={{ tag }}">{{ tag
}}</a>{%