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/random-poem.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/random-poem.html') diff --git a/templates/random-poem.html b/templates/random-poem.html index bdfbaff..f3531d8 100644 --- a/templates/random-poem.html +++ b/templates/random-poem.html @@ -1,8 +1,9 @@ {% if let Some(poem) = poem %}
-

random poem

+

{{ locale.text("random-poem").unwrap() }}

-

{% if let Some(title) = poem.title %}{{ title }}{% else %}permalink{% endif %}

+

{% if let Some(title) = poem.title %}{{ title }}{% else %}{{ locale.text("permalink").unwrap() }}{% endif %} +

{{ poem.content|safe }} -- cgit