diff options
Diffstat (limited to '')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/blogpost-panel.html | 5 | ||||
-rw-r--r-- | templates/contact.html | 21 | ||||
-rw-r--r-- | templates/filtertags.html | 2 | ||||
-rw-r--r-- | templates/home.html | 17 | ||||
-rw-r--r-- | templates/latestposts.html | 7 | ||||
-rw-r--r-- | templates/poem-panel.html | 5 | ||||
-rw-r--r-- | templates/random-poem.html | 5 |
8 files changed, 32 insertions, 32 deletions
diff --git a/templates/base.html b/templates/base.html index c1dbfad..428ce40 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/fonts.css"> <link rel="icon" type="image/png" href="/static/favicon.png" /> - <title>celeste's hard drive</title> + <title>{{ title }}</title> </head> <body> 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>{% diff --git a/templates/contact.html b/templates/contact.html index 4302e88..d6534fd 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -6,7 +6,7 @@ <header> <div class="panel" id="title"> - <h1>celeste 🌸</h1> + <h1>{{ locale.text("name").unwrap() }}</h1> </div> </header> @@ -15,21 +15,22 @@ {% block content %} <div class="content panel h-card" rel="author"> - <h1 class="p-name">cel</h1> + <h1 class="p-name">{{ locale.text("name").unwrap() }}</h1> <ul> <li> - <h3>pronouns: <span class="p-x-pronoun-nominative">she</span>/<span class="p-x-pronoun-accusative">her</span></h3> + <h3>{{ locale.text("pronouns").unwrap()|safe }}</h3> </li> - <li>email: <a class="u-email" href="mailto:cel@blos.sm">cel@blos.sm</a></li> - <li>jabber: <a class="u-impp" href="xmpp:cel@blos.sm?message">cel@blos.sm</a></li> - <li>scrobbles: <a class="u-url" href="https://listenbrainz.org/user/celblossom">listenbrainz/celblossom</a></li> - <li>bandcamp fan: <a class="u-url" href="https://bandcamp.com/celblossom">bandcamp/celblossom</a></li> + <li>{{ locale.text("email").unwrap() }}: <a class="u-email" href="mailto:cel@blos.sm">cel@blos.sm</a></li> + <li>{{ locale.text("jabber").unwrap() }}: <a class="u-impp" href="xmpp:cel@blos.sm?message">cel@blos.sm</a></li> + <li>{{ locale.text("scrobbles").unwrap() }}: <a class="u-url" + href="https://listenbrainz.org/user/celblossom">listenbrainz/celblossom</a></li> + <li>{{ locale.text("bandcamp-fan").unwrap() }}: <a class="u-url" + href="https://bandcamp.com/celblossom">bandcamp/celblossom</a></li> <br> - <li><span class="p-note">languages (in rough skill order): english, portuguese, french, japanese, german, chinese, - latin, toki pona, korean</span></li> + <li><span class="p-note">{{ locale.text("languages").unwrap() }}</span></li> </li> - <li><span class="p-note">programming: rust, erlang, go, haskell, webdev, lisp</span></li> + <li><span class="p-note">{{ locale.text("programming").unwrap() }}</span></li> </ul> </div> diff --git a/templates/filtertags.html b/templates/filtertags.html index 55c802f..4902dd4 100644 --- a/templates/filtertags.html +++ b/templates/filtertags.html @@ -1,5 +1,5 @@ <div class="panel" id="filter-tags"> - <h2>filter by tags</h2> + <h2>{{ locale.text("filter-by-tags").unwrap() }}</h2> <div class="tags"> {% for tag in tags.clone() %}{% let contains_tag = filter_tags.contains(tag) %}<a class="{% if contains_tag %}active{% endif %}" 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 %} diff --git a/templates/latestposts.html b/templates/latestposts.html index e2dfa9f..b2ed2c5 100644 --- a/templates/latestposts.html +++ b/templates/latestposts.html @@ -1,10 +1,11 @@ <div class="panel" id="posts"> - <h2>latest posts <a class="small-badge" href="/feed"><img class="small-badge" src="/static/atombadge.png" - alt="atom newsfeed"></a></h2> + <h2>{{ locale.text("latest-blogposts").unwrap() }} <a class="small-badge" href="/feed"><img class="small-badge" + src="/static/atombadge.png" alt="atom newsfeed"></a></h2> <table id="post-list"> {% for blogpost in blogposts %} <tr> - <td><a class="post-entry" href="/blog/{{ blogpost.file_name() }}">{{ blogpost.subject().unwrap_or("untitled") + <td><a class="post-entry" href="/blog/{{ blogpost.file_name() }}">{{ + blogpost.subject().unwrap_or(locale.text("untitled").unwrap().as_str()) }}<span class="post-date">{{ blogpost.published_at()|mytruncate(10) }}</span></a></td> </tr> diff --git a/templates/poem-panel.html b/templates/poem-panel.html index 3359578..e1fb016 100644 --- a/templates/poem-panel.html +++ b/templates/poem-panel.html @@ -2,9 +2,10 @@ style="top: {{ self::thread_rng().gen_range(-jiggle..=jiggle) }}vw; left: {{ self::thread_rng().gen_range(-4..=4) }}vw" class="panel content poem"> {% if let Some(title) = poem.title %}<h1 class="title">{{ title }}</h1>{% endif %} - <h2 class="created-at">{{ poem.created_at.date_naive() }} <a href="/poetry/{{ poem.file_name }}">permalink</a> + <h2 class="created-at">{{ poem.created_at.date_naive() }} <a href="/poetry/{{ poem.file_name }}">{{ + locale.text("permalink").unwrap() }}</a> </h2> <div class="poem-content"> {{ poem.content|safe }} </div> -</div> +</div>
\ No newline at end of file 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 }} |