From e1924337a00a05f23d4f9b6255b18f24c980302f Mon Sep 17 00:00:00 2001
From: Eloi Perdereau <eloi@perdereau.eu>
Date: Sun, 24 Nov 2019 16:33:03 +0100
Subject: [PATCH] authors config: change 'prefix' to 'directory'

---
 _data/authors.yml             | 12 ++++++------
 _includes/author-profile.html |  2 +-
 _includes/footer.html         |  2 +-
 _includes/seo.html            |  2 +-
 _includes/sidebar.html        |  2 +-
 _layouts/single.html          |  2 +-
 lepuget/config.yml            |  2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/_data/authors.yml b/_data/authors.yml
index 28c3f04..f7768b7 100644
--- a/_data/authors.yml
+++ b/_data/authors.yml
@@ -1,7 +1,7 @@
 # /_data/authors.yml
 authors:
   - name             : "Centre Culturel de Luminy"
-    prefix           : "ccl"
+    directory        : "ccl"
     avatar           : /assets/images/authors-logo/indien-petit.png
     og_image         : /assets/images/logo-ccl-grand.png
     banner           : /assets/images/banniere-ccl-intime.png
@@ -12,7 +12,7 @@ authors:
     helloasso        : "centre-culturel-de-luminy"
 
   - name             : "Jardin Universitaire"
-    prefix           : "jardin"
+    directory        : "jardin"
     avatar           : /assets/images/authors-logo/logo-jardin.png
     banner           : /assets/images/banniere-jardin.jpg
     bio              : "Jardin partagé chaleureux et ouvert à tous ! "
@@ -23,7 +23,7 @@ authors:
     links:
 
   - name             : "Club de Science Luminy"
-    prefix           : "club-science"
+    directory        : "club-science"
     avatar           : /assets/images/authors-logo/logo-club-sciences.jpeg
     bio              : "Organisation de conférences, de cours d'histoire et de philosophie des sciences"
     location         : "Luminy"
@@ -31,7 +31,7 @@ authors:
     facebook         : "Club-de-Science-Luminy-114357542612098/"
 
   - name             : "FSE Luminy"
-    prefix           : "fse"
+    directory        : "fse"
     avatar           : /assets/images/authors-logo/fse-transparent.png
     bio              : "INFORMER les étudiants, DÉFENDRE leurs droits, et créer la SOLIDARITÉ sur nos campus !"
     location         : "Cité U & Hexagone"
@@ -39,7 +39,7 @@ authors:
     facebook         : "https://www.facebook.com/FSE.Luminy/"
 
   - name             : "Café des Langues"
-    prefix           : "cafe-des-langues"
+    directory        : "cafe-des-langues"
     avatar           : /assets/images/authors-logo/cafe-des-langues.png
     bio              : "Venez converser autour d’un bon café et dans une ambiance très conviviale !"
     location         : "Bibliothèque U."
@@ -49,7 +49,7 @@ authors:
     twitter          : "Cafe_Langues"
 
   - name             : "ALLIÉ"
-    prefix           : "allie"
+    directory        : "allie"
     avatar           : /assets/images/authors-logo/allie.png
     bio              : "Association Luminyenne de Lutte et d'Information des Etudiants, est basée à Marseille"
     location         : "Hexagone"
diff --git a/_includes/author-profile.html b/_includes/author-profile.html
index 12c5971..76994e1 100644
--- a/_includes/author-profile.html
+++ b/_includes/author-profile.html
@@ -1,7 +1,7 @@
 <!-- {% assign author = page.author | default: page.authors[0] | default: site.author %} -->
 {% assign author = page.url | split: "/" %}
 {% assign author = author[1] %}
-{% assign author = site.data.authors.authors | where: "prefix", author | first %}
+{% assign author = site.data.authors.authors | where: "directory", author | first %}
 
 <div itemscope itemtype="https://schema.org/Person">
 
diff --git a/_includes/footer.html b/_includes/footer.html
index b24726a..89ebf53 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -13,7 +13,7 @@
     <ul>
     {% for author in site.data.authors.authors %}
       <li>
-        <a href="/{{ author.prefix }}/">{{ author.name }}</a>
+        <a href="/{{ author.directory }}/">{{ author.name }}</a>
       </li>
     {% endfor %}
   </div>
diff --git a/_includes/seo.html b/_includes/seo.html
index be95b29..613f94f 100644
--- a/_includes/seo.html
+++ b/_includes/seo.html
@@ -27,7 +27,7 @@
 
 {% assign author = page.url | split: "/" %}
 {% assign author = author[1] %}
-{% assign author = site.data.authors.authors | where: "prefix", author | first %}
+{% assign author = site.data.authors.authors | where: "directory", author | first %}
 
 {%- if author.twitter -%}
   {%- assign author_twitter = author.twitter | replace: "@", "" -%}
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index d313046..b052950 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -17,7 +17,7 @@
       {% if s.nav %}{% include nav_list nav=s.nav %}{% endif %}
     {% endfor %}
     {% if page.sidebar.nav %}
-      {% include nav_list nav=author.prefix %}
+      {% include nav_list nav=author.directory %}
     {% endif %}
   {% endif %}
   </div>
diff --git a/_layouts/single.html b/_layouts/single.html
index 1eec134..f5f4f52 100644
--- a/_layouts/single.html
+++ b/_layouts/single.html
@@ -4,7 +4,7 @@ layout: default
 
 {% assign author = page.url | split: "/" %}
 {% assign author = author[1] %}
-{% assign author = site.data.authors.authors | where: "prefix", author | first %}
+{% assign author = site.data.authors.authors | where: "directory", author | first %}
 
 {% if page.header.overlay_color or page.overlay_image or page.header.image or author.banner %}
   {% include page__hero.html %}
diff --git a/lepuget/config.yml b/lepuget/config.yml
index c242dc9..d618a51 100644
--- a/lepuget/config.yml
+++ b/lepuget/config.yml
@@ -24,7 +24,7 @@ collections:
             widget: "list"
             fields:
               - {                  label: "Nom à afficher", name: "name", widget: string }
-              - { required: false, label: "Nom court (pour l'url)", name: "prefix", widget: string }
+              - { required: false, label: "Répertoire (nom court)", name: "directory", widget: string }
               - {                  label: "Avatar", name: "avatar", widget: image }
               - { required: false, label: "Image de partage", name: "og_image", widget: string }
               - { required: false, label: "Bannière par défaut", name: "banner", widget: string }
-- 
GitLab