Update baseurl

This commit is contained in:
samaradel
2022-07-21 14:24:58 +02:00
parent 8355d02d18
commit 2326facb08
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
# The URL the site will be built for
base_url = "https://www3.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"

View File

@@ -1,5 +1,6 @@
{%- set section = get_section(path="header/_index.md") %}
{% set header_items = section.content | safe | split(pat="<li>") %}
{% set base = config.base_url %}
<header id="header-container">
<div class="z-10 bg-white fixed w-full top-0">
@@ -38,6 +39,10 @@
<a href="{{link_path[1]}}" target="_blank" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
{{link_label}}
</a>
{% elif base is containing("/www_threefold_io/") %}
<a href="/www_threefold_io/{{link_path[1]}}" target="_blank" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
{{link_label}}
</a>
{% else %}
<a href="{{link_path[1]}}" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
{{link_label}}