From c522c251704a388a2c5cff7c4bda155fff869759 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Fri, 24 Jul 2020 15:13:02 +0200
Subject: [PATCH] about

---
 content/about.md   |  8 ++++++++
 templates/nav.html | 26 ++++++++++++++------------
 2 files changed, 22 insertions(+), 12 deletions(-)
 create mode 100644 content/about.md

diff --git a/content/about.md b/content/about.md
new file mode 100644
index 0000000..b7dc3e0
--- /dev/null
+++ b/content/about.md
@@ -0,0 +1,8 @@
++++
+title = "À propos"
+
+[extra]
+hide = true
++++
+
+Ce site a été réalisé en [Zola](https://www.getzola.org/) avec [w3.css](https://www.w3schools.com/w3css/) et [Forkawesome](https://forkaweso.me/Fork-Awesome/).
\ No newline at end of file
diff --git a/templates/nav.html b/templates/nav.html
index b94b972..a20e7ad 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -3,29 +3,31 @@
   
   {% set index = get_section(path="_index.md") %}
   {% for page in index.pages %}
+    {% if not page.extra.hide %}
     <a href="{{ page.permalink }}" class="w3-bar-item w3-button w3-mobile
       {% if current_path %}{% if current_path == page.path %}active{% endif %}{% endif %}">
       {{page.title}}
     </a>
-  {% endfor %}
-
-  {% for s in index.subsections %}{% set subsection = get_section(path=s) %}
-    <a href="{{ subsection.permalink }}" class="w3-bar-item w3-button w3-mobile
-      {% if current_path %}{% if current_path is starting_with(subsection.path) %}active{% endif %}{% endif %}">
-      {{subsection.title}}
-    </a>
+    {% endif %}
   {% endfor %}
 
 
   <div class="w3-dropdown-hover w3-mobile w3-right">
-    <button class="w3-button">Dropdown <i class="fa fa-caret-down"></i></button>
+    <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="#" class="w3-bar-item w3-button w3-mobile">Link 1</a>
-      <a href="#" class="w3-bar-item w3-button w3-mobile">Link 2</a>
-      <a href="#" class="w3-bar-item w3-button w3-mobile">Link 3</a>
+      <a href="/about/" class="w3-bar-item w3-button w3-mobile">À propos</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"><i class="fa fa-discourse"></i> Forum</a>
     </div>
   </div>
 
-
+  {% for s in index.subsections %}{% set subsection = get_section(path=s) %}
+    {% if not subsection.extra.hide %}
+    <a href="{{ subsection.permalink }}" class="w3-bar-item w3-button w3-mobile w3-right
+      {% if current_path %}{% if current_path is starting_with(subsection.path) %}active{% endif %}{% endif %}">
+      {{subsection.title}}
+    </a>
+    {% endif %}
+  {% endfor %}
 
 </nav>
\ No newline at end of file
-- 
GitLab