From 7be92341a42e6d972ddb0fe5779cbfdd1167a989 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Sun, 26 Jul 2020 12:18:05 +0200
Subject: [PATCH] check footer and nav links

---
 templates/footer.html | 12 ++++++------
 templates/nav.html    |  3 ++-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/templates/footer.html b/templates/footer.html
index 0ad6ab4..800ef0b 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -10,7 +10,7 @@
                 var $footerSearch = document.getElementById("footersearch");
                 var footerSearchString = $footerSearch.value; 
                 console.log("pressed enter")
-                document.location.href = "http://duniter.trentesaux.fr/search/?s=" + footerSearchString;
+                document.location.href = "{{ get_url(path='@/search.md') | safe }}?s=" + footerSearchString;
             }
         });
       </script>
@@ -18,15 +18,15 @@
   
   <div class="w3-container w3-cell w3-mobile">
       <h3>Vous voyez une erreur ?</h3>
-      <a class="w3-button" href="#">Contribuer sur Gitlab</a>
+      <a class="w3-button" href="{{ get_url(path='@/wiki/about/contact.md') }}">Dites-le sur le forum !</a>
   </div>
   
   <div class="w3-container w3-cell w3-mobile">
       <ul>
-          <li><a href="#">Licence</a></li>
-          <li><a href="#">Qui sommes-nous ?</a></li>
-          <li><a href="#">Contact</a></li>
-          <li><a href="#">Financements</a></li>
+          <li><a href="{{ get_url(path='@/wiki/about/_index.md') }}">Licence</a></li>
+          <li><a href="{{ get_url(path='@/wiki/about/qui-sommes-nous.md') }}">Qui sommes-nous ?</a></li>
+          <li><a href="{{ get_url(path='@/wiki/about/contact.md') }}">Contact</a></li>
+          <li><a href="{{ get_url(path='@/wiki/financements.md') }}">Financements</a></li>
       </ul>
   </div>
   
diff --git a/templates/nav.html b/templates/nav.html
index 846c357..61a5cec 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -15,7 +15,8 @@
   <div class="w3-dropdown-hover w3-mobile w3-right">
     <button class="w3-button">Plus <i class="fa fa-caret-down"></i></button>
     <div class="w3-dropdown-content w3-bar-block w3-dark-grey">
-      <a href="/wiki/about/" class="w3-bar-item w3-button w3-mobile">À propos</a>
+      <a href="{{ get_url(path='@/wiki/about/_index.md') }}" class="w3-bar-item w3-button w3-mobile">À propos</a>
+      <a href="{{ get_url(path='@/wiki/about/contact.md') }}" class="w3-bar-item w3-button w3-mobile">Contact</a>
       <a href="https://git.duniter.org/" class="w3-bar-item w3-button w3-mobile"><i class="fa fa-gitlab"></i> GitLab</a>
       <a href="https://forum.duniter.org/" class="w3-bar-item w3-button w3-mobile"><img alt="d" class="icon" src="https://simpleicons.org/icons/discourse.svg"/> Forum</a>
     </div>
-- 
GitLab