diff --git a/_data/authors.yml b/_data/authors.yml index f7768b7d4a1e6840938a9e45b6cdded5989b0d07..28c3f044a1af6aa3187bbc538cbd2bf9a04a5d77 100644 --- a/_data/authors.yml +++ b/_data/authors.yml @@ -1,7 +1,7 @@ # /_data/authors.yml authors: - name : "Centre Culturel de Luminy" - directory : "ccl" + prefix : "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" - directory : "jardin" + prefix : "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" - directory : "club-science" + prefix : "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" - directory : "fse" + prefix : "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" - directory : "cafe-des-langues" + prefix : "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É" - directory : "allie" + prefix : "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 76994e13444173491060efb29fb6c6d2b4e9b5c3..12c5971bba0f6d518f41f8a84538960290820c3b 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: "directory", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", author | first %} <div itemscope itemtype="https://schema.org/Person"> diff --git a/_includes/footer.html b/_includes/footer.html index 89ebf53cc956b6d783bdc3aafd8bba2dad5c9fd4..b24726a554eb6141a9595d49a271f2117ecd3d19 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.directory }}/">{{ author.name }}</a> + <a href="/{{ author.prefix }}/">{{ author.name }}</a> </li> {% endfor %} </div> diff --git a/_includes/seo.html b/_includes/seo.html index 613f94f9121f943c4a60b6dd795b5b0da22ecc4f..be95b29e8989a855f153ff443700a5a88f71767d 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: "directory", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", author | first %} {%- if author.twitter -%} {%- assign author_twitter = author.twitter | replace: "@", "" -%} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index b052950f8e84d4bbecb9e0fea4a293ee7314a609..d3130467f82b9db89996c201518bde90a969ed79 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.directory %} + {% include nav_list nav=author.prefix %} {% endif %} {% endif %} </div> diff --git a/_layouts/single.html b/_layouts/single.html index d623425a0c5bf126e32c7a4e6c8265ac4c52cc62..87f34487393d54999b5468e75631db4c463ef9d4 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: "directory", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", author | first %} {% if page.has_header %} {% include page__hero.html %} diff --git a/lepuget/config.yml b/lepuget/config.yml index d618a5170c6c5ececcac09e2d2c45f3c222155fe..c242dc9daa965b258900b43f2c5bb49fa04c8701 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: "Répertoire (nom court)", name: "directory", widget: string } + - { required: false, label: "Nom court (pour l'url)", name: "prefix", 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 }