From 88fa09755ff31b39b0454f0da58bc41a90263e89 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sat, 10 Feb 2024 06:54:25 +0000 Subject: add initial localisation --- templates/blogpost-panel.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/blogpost-panel.html') 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 @@
-

{{ blogpost.subject().unwrap_or("untitled") }}

-

{{ blogpost.published_at() }} permalink

+

{{ blogpost.subject().unwrap_or(locale.text("untitled").unwrap().as_str()) }}

+

{{ blogpost.published_at() }} {{ + locale.text("permalink").unwrap() }}

{% for tag in blogpost.tags() %}{% let tag = tag.to_string() %}{{ tag }}{% -- cgit