From d524c9abe76424755150893c2cf1541bc5a4017e Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 21 Jul 2022 19:04:05 +0200 Subject: [PATCH] test links --- templates/memberships/list.html | 4 ++++ templates/memberships/single.html | 6 ++++++ templates/partials/header.html | 6 +++--- templates/shortcodes/button.html | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 templates/memberships/list.html create mode 100644 templates/memberships/single.html diff --git a/templates/memberships/list.html b/templates/memberships/list.html new file mode 100644 index 000000000..f628a84fb --- /dev/null +++ b/templates/memberships/list.html @@ -0,0 +1,4 @@ +{% extends "index.html" %} + +{% block content %} +{% endblock content %} \ No newline at end of file diff --git a/templates/memberships/single.html b/templates/memberships/single.html new file mode 100644 index 000000000..f9455234c --- /dev/null +++ b/templates/memberships/single.html @@ -0,0 +1,6 @@ +{% extends "index.html" %} + +{% block content %} + + {% endblock content %} + diff --git a/templates/partials/header.html b/templates/partials/header.html index e56ebbb50..f2868eaa8 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,7 +1,7 @@ {%- set section = get_section(path="header/_index.md") %} {% set header_items = section.content | safe | split(pat="
  • ") %} {% set base = config.base_url %} -{% set logo_path = base ~ section.extra.logoPath %} +{% set logo_path = base ~ '/' ~ section.extra.logoPath %}
    @@ -40,7 +40,7 @@ {{link_label}} - {% elif header_label is starting_with("/") %} + {% elif current_url is starting_with("www_threefold_io") %} {% set path = current_url ~ link_path[1] %} {{link_label}} @@ -174,7 +174,7 @@ {{link_label}} - {% elif header_label is starting_with("/") %} + {% elif current_url is starting_with("www_threefold_io") %} {% set path = current_url ~ link_path[1] %} {{link_label}} diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index acf453f9d..f6576a4dd 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -8,7 +8,7 @@ {% elif path is starting_with('/') %} -{% set btn_path = 'www_threefold_io' ~ path %} +{% set btn_path = 'www_threefold_io/' ~ path %}