diff --git a/_data/navigation/en_US.yml b/_data/navigation/en_US.yml index e82ca3c3e3..300949b03b 100644 --- a/_data/navigation/en_US.yml +++ b/_data/navigation/en_US.yml @@ -33,6 +33,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 a5a592ffed..0a86e5175d 100644 --- a/_includes/head/custom.html +++ b/_includes/head/custom.html @@ -17,6 +17,16 @@ + +{% 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 %} +