From c75207afcccafaf3a082ed29d372619feb0e7ff9 Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 21 Jul 2022 20:15:07 +0200 Subject: [PATCH] Fix links --- templates/partials/header.html | 12 ++++++------ templates/shortcodes/cloud_header.html | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/partials/header.html b/templates/partials/header.html index f2868eaa8..c349c7ca1 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -40,14 +40,14 @@ {{link_label}} - {% elif current_url is starting_with("www_threefold_io") %} - {% set path = current_url ~ link_path[1] %} + {% elif base is containing("www_threefold_io") %} + {% set path = 'www_threefold_io' ~ link_path[1] %} - {{link_label}} + {{link_label}} {% else %} - {{link_label}} + {{link_label}} {% endif %} {% else %} @@ -174,8 +174,8 @@ {{link_label}} - {% elif current_url is starting_with("www_threefold_io") %} - {% set path = current_url ~ link_path[1] %} + {% elif base is containing("www_threefold_io") %} + {% set path = 'www_threefold_io' ~ link_path[1] %} {{link_label}} diff --git a/templates/shortcodes/cloud_header.html b/templates/shortcodes/cloud_header.html index 3a8e60353..2b26d47bc 100644 --- a/templates/shortcodes/cloud_header.html +++ b/templates/shortcodes/cloud_header.html @@ -9,7 +9,9 @@
{% if base is containing("www_threefold_io") %} - TF Cloud + {% set path = base ~ '/' ~ 'images/cloud_header_seprated.png' %} + + TF Cloud {% else %} TF Cloud {% endif %}