mkdocs-static-i18n
mkdocs-static-i18n copied to clipboard
Is possible to put default language result in non-root path?
Hi,
I found that there is a breaking change in v1.0.0:
selected language with default: true will only be built on the root path of the site (to avoid SEO duplicate content)
I wonder whether it is possible to only build default language to non root path? In this way, freely changing the default language without worrying about URL corruption could be possible.
Thanks a lot.
I'm in a similar situation where I need to treat the default language differently because its URL diverges from the pattern of non-default languages. Markdown links are adapted automatically but making e.g. links work in places where you can't use Markdown syntax is a head scratcher. At least in templates a variable for the default language would be useful to compare the i18n_page_locale with. Maybe even an extended base_url that already includes the language where required.