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/home.html | |
parent | 205a71efa9f60938c86d57bba07f6d33b21790a2 (diff) | |
download | blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.gz blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.tar.bz2 blossom-88fa09755ff31b39b0454f0da58bc41a90263e89.zip |
add initial localisation
Diffstat (limited to 'templates/home.html')
-rw-r--r-- | templates/home.html | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/templates/home.html b/templates/home.html index 7bbed9e..3e34cae 100644 --- a/templates/home.html +++ b/templates/home.html @@ -6,7 +6,7 @@ <header> <div class="panel" id="title"> - <h1>celeste 🌸</h1> + <h1>{{ locale.text("name").unwrap() }}</h1> </div> {% if is_live %} @@ -16,7 +16,8 @@ {% endif %} {% if listenbrainz.is_scrobbling %} - <a href="https://listenbrainz.org/user/celblossom" class="panel" id="scrobble">now playing: {{ + <a href="https://listenbrainz.org/user/celblossom" class="panel" id="scrobble">{{ locale.text("now-playing").unwrap() + }}: {{ listenbrainz.song.clone().unwrap_or_default() }} - {{ listenbrainz.artist.clone().unwrap_or_default() }}</a> {% endif %} @@ -28,13 +29,7 @@ {% block content %} <div class="panel content"> - <h2>hallo i am celeste welcome 2 my site 🌟</h2> - <p>this is where i do the posting</p> - <p>i wish u a wonderful day</p> - <br> - <img src="/static/quinntyping.png"> - <p>perpetually under construction</p> - <img style="border: 0;" src="/static/barraconstruction.gif"> + {{ locale.text("welcome").unwrap()|safe }} </div> {% endblock content %} @@ -44,10 +39,10 @@ <aside> <div class="panel" style="background-color: #b52f6a; z-index: -1; font-family: 'Terminal Grotesque'; font-size: 2em"> - latest update: added poetry!</div> + {{ locale.text("latest-update").unwrap() }}</div> {% include "latestposts.html" %} {% include "random-poem.html" %} </aside> -{% endblock aside %}
\ No newline at end of file +{% endblock aside %} |