use svg for flags
This commit is contained in:
parent
b45a89d781
commit
0664e96b72
7 changed files with 335 additions and 163 deletions
|
@ -53,28 +53,28 @@
|
|||
<p class="switcher">
|
||||
{% if page.lang == 'en' %}
|
||||
{% if page.fr_url == '' %}
|
||||
<a href="{{ page.url | remove_first: '/en' }}">🇫🇷</a>
|
||||
<a href="{{ page.url | remove_first: '/en' }}"><img class="switch_flag" src="/images/flags/fr.svg" alt="flag of France"></a>
|
||||
{% else %}
|
||||
<a href="{{ page.fr_url }}">🇫🇷</a>
|
||||
<a href="{{ page.fr_url }}"><img class="switch_flag" src="/images/flags/fr.svg" alt="flag of France"></a>
|
||||
{% endif %}
|
||||
|
||||
<a href="/de">🇩🇪</a>
|
||||
<a href="/de"><img class="switch_flag" src="/images/flags/at_de.svg" alt="half flag of Austria, half flag of Germany"></a>
|
||||
</p>
|
||||
{% include nav_en.html %}
|
||||
{% else %}
|
||||
{% if page.lang == 'de' %}
|
||||
<a href="/">🇫🇷</a>
|
||||
<a href="/en">🇬🇧</a>
|
||||
<a href="/"><img class="switch_flag" src="/images/flags/fr.svg" alt="Flagge Frankreichs"></a>
|
||||
<a href="/en"><img class="switch_flag" src="/images/flags/uk.svg" alt="Union Jack"></a>
|
||||
</p>
|
||||
{% include nav_de.html %}
|
||||
{% else %}
|
||||
{% if page.en_url == '' %}
|
||||
<a href="/en{{page.url}}">🇬🇧</a>
|
||||
<a href="/en{{page.url}}"><img class="switch_flag" src="/images/flags/uk.svg" alt="Union Jack"></a>
|
||||
{% else %}
|
||||
<a href="{{ page.en_url }}">🇬🇧</a>
|
||||
<a href="{{ page.en_url }}"><img class="switch_flag" src="/images/flags/uk.svg" alt="Union Jack"></a>
|
||||
{% endif %}
|
||||
|
||||
<a href="/de">🇩🇪</a>
|
||||
<a href="/de"><img class="switch_flag" src="/images/flags/at_de.svg" alt="demi drapeau de l'Autriche, demi dreapeau de l'Allemagne"></a>
|
||||
</p>
|
||||
{% include nav_fr.html %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue