Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions langswitcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ built_in_css: true
translated_urls: true
untranslated_pages_behavior: none
language_display: long
hide_active: true
2 changes: 1 addition & 1 deletion templates/partials/langswitcher.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endblock %}

{% block language_item %}
{% if show_language %}
{% if show_language and not (active_class and grav.config.plugins.langswitcher.hide_active) %}
<li><a href="{{ lang_url ~ uri.params ~ (uri.query|length > 1 ? '?' ~ uri.query) }}" class="external {{ active_class }}">{% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}</a></li>
{% endif %}
{% endblock %}