diff --git a/config.toml b/config.toml index 3d959f824..f884ad76e 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # The URL the site will be built for -base_url = "https://threefoldfoundation.github.io/www_threefold_io/" +base_url = "https://threefoldfoundation.github.io/www_threefold_io" # Change this to your own URL! Please note this variable **must** be uncommented. title = "ThreeFold" diff --git a/templates/partials/header.html b/templates/partials/header.html index 07c018fd2..ffb5999b4 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -39,8 +39,8 @@ {{link_label}} - {% elif base is containing("/www_threefold_io/") %} - + {% elif base is containing("/www_threefold_io") %} + {{link_label}} {% else %} diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index 9bd2f7dcc..3c68037c9 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -1,10 +1,18 @@ {% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} +{% set base = config.base_url %} + {% if 'https' in path %} + +{% elif '/www_threefold_io' in base %} + {% else %}