changed build script to work with dynamic links when switching language
This commit is contained in:
@@ -31,7 +31,7 @@ for page_name, translations in content.items():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
label = LANG_LABELS.get(other_lang, other_lang)
|
label = LANG_LABELS.get(other_lang, other_lang)
|
||||||
link = f'<a class="navbar" href="/{other_lang}/{page_name}.html">{label}</a>'
|
link = f'<a class="navbar" href="../{other_lang}/{page_name}.html">{label}</a>'
|
||||||
links.append(link)
|
links.append(link)
|
||||||
|
|
||||||
language_switcher = " ".join(links)
|
language_switcher = " ".join(links)
|
||||||
|
|||||||
Reference in New Issue
Block a user