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/blogpost-panel.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/blogpost-panel.html | 5 |
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>{% |