Logo for dark theme

This commit is contained in:
Greg Burri 2025-04-28 02:34:42 +02:00
parent 2a1f246925
commit be6905cc3b
6 changed files with 82 additions and 19 deletions

View file

@ -1 +1,6 @@
<a class="title" href="/{{ context.tr.current_lang_code() }}/"><img class="logo" src="/static/logo.svg" alt="logo">{{ context.tr.t(Sentence::MainTitle) }}</a>
<a class="title" href="/{{ context.tr.current_lang_code() }}/"><img class="logo" src="
{% if context.dark_theme %}
/static/logo_dark.svg
{% else %}
/static/logo_light.svg
{% endif %}" alt="logo">{{ context.tr.t(Sentence::MainTitle) }}</a>