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/random-poem.html | |
parent | 205a71efa9f60938c86d57bba07f6d33b21790a2 (diff) | |
download | blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.gz blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.bz2 blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.zip |
add initial localisation
Diffstat (limited to 'templates/random-poem.html')
-rw-r--r-- | templates/random-poem.html | 5 |
1 files changed, 3 insertions, 2 deletions
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 %} <div class="panel" id="random-poem"> - <h2>random poem</h2> + <h2>{{ locale.text("random-poem").unwrap() }}</h2> <a href="/poetry/{{ poem.file_name }}"> - <h3>{% if let Some(title) = poem.title %}{{ title }}{% else %}permalink{% endif %}</h3> + <h3>{% if let Some(title) = poem.title %}{{ title }}{% else %}{{ locale.text("permalink").unwrap() }}{% endif %} + </h3> </a> <div class="poem-content"> {{ poem.content|safe }} |