diff --git a/langswitcher.yaml b/langswitcher.yaml index a4973cd..0d07e1c 100644 --- a/langswitcher.yaml +++ b/langswitcher.yaml @@ -3,3 +3,4 @@ built_in_css: true translated_urls: true untranslated_pages_behavior: none language_display: long +hide_active: true diff --git a/templates/partials/langswitcher.html.twig b/templates/partials/langswitcher.html.twig index 699f29d..18976b8 100644 --- a/templates/partials/langswitcher.html.twig +++ b/templates/partials/langswitcher.html.twig @@ -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) %}
  • {% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}
  • {% endif %} {% endblock %}