diff --git a/_data/navigation/en_US.yml b/_data/navigation/en_US.yml index a4aed8a0..ff2fb6eb 100644 --- a/_data/navigation/en_US.yml +++ b/_data/navigation/en_US.yml @@ -30,6 +30,9 @@ main: - title: Uninstall CFW url: uninstall-cfw +top: + - + title: This website uses cookies to display the current guide progress on the sidebar and otherwise enhance the site. bottom: - title: For support in English, ask for help at Nintendo Homebrew on Discord. diff --git a/_includes/head/custom.html b/_includes/head/custom.html index 5125c1ee..1f84b840 100644 --- a/_includes/head/custom.html +++ b/_includes/head/custom.html @@ -18,6 +18,15 @@ +{% assign split_path = page.path | split: "/" %} +{% assign locale = split_path[1] %} +{% if locale == 'en_US' %} + {% assign locale_var = '/' %} +{% else %} + {% assign locale_var = locale | prepend:'/' | append:'/' %} +{% endif %} +{% assign top = site.data.navigation[locale].top %} +