Localized template strings

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2022-01-22 23:26:01 +01:00
parent ad7af71456
commit 4e1197b437
2 changed files with 8 additions and 3 deletions

View file

@ -10,3 +10,8 @@ build_search_index = false
[markdown]
external_links_target_blank = true
[languages.en.translations]
contact = "Contact Us"
donate = "Donate"
home = "Home"
support-us = "Support Us"

View file

@ -2,17 +2,17 @@
<span class="logo"></span>
<span class="menu_items">
<span class="menuitem{% if resource.path != '/' %}"><a href="/">{% else %}_active">{% endif %}
<span>Home</span>
<span>{{ trans(key='home') }}</span>
{%- if resource.path != '/' %}</a>{% endif %}
</span>
<span class="menuitem{% if resource.path != '/donate/' %}"><a href="/donate/">{% else %}_active">{% endif %}
<span>❤️ Donate</span>
<span>❤️ {{ trans(key='donate') }}</span>
{% if resource.path != '/donate/' %}</a>{% endif %}
</span>
<span class="menuitem{% if resource.path != '/support-us/' %}"><a href="/support-us/">{% else %}_active">{% endif %}
<span>Support Us</span>
<span>{{ trans(key='support-us') }}</span>
{% if resource.path != '/support-us/' %}</a>{% endif %}
</span>