diff --git a/_data/authors.yml b/_data/authors.yml index 28c3f044a1af6aa3187bbc538cbd2bf9a04a5d77..f7768b7d4a1e6840938a9e45b6cdded5989b0d07 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 12c5971bba0f6d518f41f8a84538960290820c3b..76994e13444173491060efb29fb6c6d2b4e9b5c3 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 b24726a554eb6141a9595d49a271f2117ecd3d19..89ebf53cc956b6d783bdc3aafd8bba2dad5c9fd4 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 be95b29e8989a855f153ff443700a5a88f71767d..613f94f9121f943c4a60b6dd795b5b0da22ecc4f 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 d3130467f82b9db89996c201518bde90a969ed79..b052950f8e84d4bbecb9e0fea4a293ee7314a609 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 1eec134759073fb331521e76a0113376586ebbac..f5f4f52b90c5a7989788a154d7056e48e77dae8d 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 c242dc9daa965b258900b43f2c5bb49fa04c8701..d618a5170c6c5ececcac09e2d2c45f3c222155fe 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 }