Skip to content

Commit

Permalink
Enable language selection
Browse files Browse the repository at this point in the history
  • Loading branch information
lordiii committed Mar 6, 2024
1 parent 36499c7 commit b2393e7
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
3 changes: 3 additions & 0 deletions content/projects/groups.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
title = "Projekt Groups"
+++
3 changes: 3 additions & 0 deletions content/projects/groups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
title = "Projektgruppen"
+++
Binary file added static/media/img/lang/de.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/media/img/lang/en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions templates/navbar-items-de.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<ul class="navbar-nav navbar-right">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<div class="d-none d-sm-inline">
<img id="img-icon-lang" src="" style="height: 28px;" alt="Sprache">
</div>
Expand All @@ -79,8 +79,23 @@
</div>
</a>
<ul class="dropdown-menu">
<li><a href="/index.dark.html"><img src="/media/img/lang/de.png">Deutsch</a></li>
<li><a href="/en/"><img src="/media/img/lang/en.png">English</a></li>
{% if section.translations %}
{% for lang in section.translations %}
<li>
<a class="dropdown-item" href="{{lang.permalink}}">
<img src="/media/img/lang/{{lang.lang}}.png" class="me-1">{{lang.lang}}
</a>
</li>
{% endfor %}
{% elif page.translations %}
{% for lang in page.translations %}
<li>
<a class="dropdown-item" href="{{lang.permalink}}">
<img src="/media/img/lang/{{lang.lang}}.png" class="me-1">{{lang.lang}}
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</li>
</ul>
Expand Down
21 changes: 18 additions & 3 deletions templates/navbar-items-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<ul class="navbar-nav navbar-right">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<div class="d-none d-sm-inline">
<img id="img-icon-lang" src="" style="height: 28px;" alt="Language">
</div>
Expand All @@ -79,8 +79,23 @@
</div>
</a>
<ul class="dropdown-menu">
<li><a href="/index.dark.html"><img src="/media/img/lang/de.png">Deutsch</a></li>
<li><a href="/en/"><img src="/media/img/lang/en.png">English</a></li>
{% if section.translations %}
{% for lang in section.translations %}
<li>
<a class="dropdown-item" href="{{lang.permalink}}">
<img src="/media/img/lang/{{lang.lang}}.png" class="me-1">{{lang.lang}}
</a>
</li>
{% endfor %}
{% elif page.translations %}
{% for lang in page.translations %}
<li>
<a class="dropdown-item" href="{{lang.permalink}}">
<img src="/media/img/lang/{{lang.lang}}.png" class="me-1">{{lang.lang}}
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</li>
</ul>
Expand Down

0 comments on commit b2393e7

Please sign in to comment.