English is the default language but there are also pages/welcome.de.md and pages/welcome.pl.md. What needs to be done in order to match the currently active language with the respective language file?
How do I list all inactive languages with a link to the respective starting page?
active language: en
-> list: <a href="base_url/de">de</a> <a href="base_url/pl">pl</a>
or
active language: de
-> list: <a href="base_url">en</a> <a href="base_url/pl">pl</a>
{% set page = get_page(path="pages/welcome.md", lang=lang) %}
The current lang is available as the lang variable. You can iterate on the langs from the config and skip the one where the language code is the same as lang.