From 493c6637e72d69d9787cf92a76859eeb425b4d11 Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 21 Jul 2022 18:30:31 +0200 Subject: [PATCH] Fix urls --- config.toml | 2 +- content/header/_index.md | 2 +- templates/partials/header.html | 18 +++++++++++++----- templates/shortcodes/button.html | 6 +++--- templates/shortcodes/cloud_header.html | 4 ++-- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/config.toml b/config.toml index f884ad76e..5f39a9c51 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 = "www_threefold_io" # Change this to your own URL! Please note this variable **must** be uncommented. title = "ThreeFold" diff --git a/content/header/_index.md b/content/header/_index.md index 052adc1d9..fe8af9eb9 100644 --- a/content/header/_index.md +++ b/content/header/_index.md @@ -3,7 +3,7 @@ title: "Header" insert_anchor_links: "left" template: "partials/header.html" extra: - logoPath: "/images/tft_log.svg" + logoPath: "images/tft_log.svg" button_Path: "/images/gettft_white.png" --- diff --git a/templates/partials/header.html b/templates/partials/header.html index ffb5999b4..f4d8b1645 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,14 +1,15 @@ {%- 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 %}