Skip to content

Commit

Permalink
Bei Sprachauswahl nur momentan nicht ausgewählte Sprache als Auswahl …
Browse files Browse the repository at this point in the history
…anzeigen, dafür die in beiden Sprachen
  • Loading branch information
knarrff committed Jun 6, 2019
1 parent ba0006d commit 8d15cca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@
{% assign en-url = "/en/" %}
{% assign de-url = "/de/" %}
{% endif %}
<li><a href='{{ de-url | prepend: site.baseurl }}'>Deutsch</a></li>
<li><a href='{{ en-url | prepend: site.baseurl }}'>English</a></li>

{% if lang contains "/en/" %}
<li><a href='{{ de-url | prepend: site.baseurl }}'>German/Deutsch</a></li>
{% else %}
<li><a href='{{ en-url | prepend: site.baseurl }}'>Englisch/English</a></li>
{% endif %}
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
</nav>
7 changes: 5 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@
</ul>
<ul class='nav navbar-nav pull-right'>
<!-- Language menu items take the user back to the blog main page -->
<li><a href='{{ "/de/blog.html" | prepend: site.baseurl }}'>Deutsch</a></li>
<li><a href='{{ "/en/blog.html" | prepend: site.baseurl }}'>English</a></li>
{% if lang contains "/en/" %}
<li><a href='{{ "/de/blog.html" | prepend: site.baseurl }}'>German/Deutsch</a></li>
{% else %}
<li><a href='{{ "/en/blog.html" | prepend: site.baseurl }}'>Englisch/English</a></li>
{% endif %}
</ul>
</div><!--/.nav-collapse -->
</div>
Expand Down

0 comments on commit 8d15cca

Please sign in to comment.