From ff88bdb6d41be546dbaa80f0faefa1577dd04095 Mon Sep 17 00:00:00 2001 From: daudix-UFO Date: Mon, 25 Dec 2023 05:31:59 +0300 Subject: [PATCH] feat: Borrow $BASE_URL implementation from after-dark https://github.com/getzola/after-dark/blob/37b4516e5bb1e86fcbc9db13b961f2a4a23926f0/templates/index.html#L42-L47 --- config.toml | 4 ++-- templates/includes/nav.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index 9198a75..010f038 100644 --- a/config.toml +++ b/config.toml @@ -48,8 +48,8 @@ show_feed = true # Links used in the nav links = [ {url = "https://codeberg.org/daudix/duckquill", name = "Repo"}, - {url = "/demo", name = "Demo"}, - {url = "/blog", name = "Blog"}, + {url = "$BASE_URL/demo", name = "Demo"}, + {url = "$BASE_URL/blog", name = "Blog"}, ] [extra.footer] diff --git a/templates/includes/nav.html b/templates/includes/nav.html index b93b86c..d291593 100644 --- a/templates/includes/nav.html +++ b/templates/includes/nav.html @@ -1,17 +1,17 @@ + \ No newline at end of file