From 06b804f87fb653a8e2fd47b622efd2177b9396e3 Mon Sep 17 00:00:00 2001 From: Boris SCHAPIRA <borisschapira@gmail.com> Date: Sat, 20 Jan 2018 19:17:18 +0100 Subject: [PATCH] Ordre Thym --- _data/thym_members.yml | 7 +++++++ _includes/footer.html | 2 +- _includes/schema.html | 2 +- _layouts/default.html | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/_data/thym_members.yml b/_data/thym_members.yml index 1c023c4c..62e26db9 100644 --- a/_data/thym_members.yml +++ b/_data/thym_members.yml @@ -1,21 +1,28 @@ - name: Alexandra Janin + slug: alexandra-janin twitter: lellexindo - name: Bertrand Keller + slug: bertrand-keller twitter: bertrandkeller - name: Boris Schapira + slug: boris-schapira twitter: borisschapira - name: Matthieu Bué + slug: matthieu-bue twitter: twikito - name: Julia Barbelane + name: julia-barbelane twitter: juliabarbelane - name: Érick Gardin + slug: erick-gardin twitter: newick - name: Thomas Gasc + slug: thomas-gasc twitter: methylbro diff --git a/_includes/footer.html b/_includes/footer.html index b611b76c..60c3d6df 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -4,7 +4,7 @@ <section id="thym"> <h2 class="text-center">{% t La Thym %}</h2> <div class="grid-7 text-center"> - {% for member in site.data.thym_members | sort: "name" %} + {% for member in thym %} <figure class="person" role="group" aria-labelledby="capt-{{member.twitter}}"> <img class="person-avatar lozad" data-src="{{ "/assets/images/thym/" | append: member.twitter | append: ".jpg" | relative_url }}" alt="{{member.name}}"> <figcaption id="capt-{{member.twitter}}" class="person-name text-xs"> diff --git a/_includes/schema.html b/_includes/schema.html index 4cbae055..e2cd5807 100644 --- a/_includes/schema.html +++ b/_includes/schema.html @@ -29,7 +29,7 @@ "@type": "ContactPoint", "url": "{{ site.url }}{{ page.baseurl | default:site.baseurl }}/{% t contact %}/" }, - "member": [{% assign members = site.data.thym_members | sort: "name" %}{% for member in members %}{% unless forloop.first == true %},{% endunless %}{ + "member": [{% for member in thym %}{% unless forloop.first == true %},{% endunless %}{ "@type": "Person", "name": "{{ member.name }}", "sameAs": "https://twitter.com/{{ member.twitter }}" diff --git a/_layouts/default.html b/_layouts/default.html index e1d70635..7be7f42c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,7 @@ layout: compress --- -{% assign locale = page.locale | default: site.locale %}{% assign lang = locale | slice: 0,2 %}{% assign thym = site.data.thym_members | sort: "name" %}{% include head.html %} +{% assign locale = page.locale | default: site.locale %}{% assign lang = locale | slice: 0,2 %}{% assign thym = site.data.thym_members | sort: "slug" %}{% include head.html %} <body> {% if page.is_home %} {% include header.html %}