From 745f785dd9a76b5102e6e58c9e5e550c458a6273 Mon Sep 17 00:00:00 2001
From: toinux <26522723+itzwam@users.noreply.github.com>
Date: Wed, 28 Feb 2024 12:55:58 +0000
Subject: [PATCH] HomePage uses Params.urlFunc + Based on HomePage relLink (#872)

---
 layouts/partials/header.html |    6 ++++--
 CONTRIBUTORS.md              |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 52b49e8..8948637 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -140,3 +140,4 @@
 - [Muqeet Malik](https://github.com/mmalik23)
 - [Sammy44nts](https://github.com/sammy44nts)
 - [Leo Heimann Ruiz](https://leo.heitmannruiz.org/)
+- [Antoine "Toinux" Wam](https://github.com/itzwam)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 45c6aac..22ac243 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,8 +1,10 @@
 <nav class="navigation">
   <section class="container">
-    <a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
-      {{ .Site.Title }}
+    {{ with .Site }}
+    <a class="navigation-title" href="{{ absLangURL "" }}">
+      {{ .Title }}
     </a>
+    {{ end }}
     {{ if or .Site.Menus.main .Site.IsMultiLingual }}
       <input type="checkbox" id="menu-toggle" />
       <label class="menu-button float-right" for="menu-toggle">

--
Gitblit v1.10.0