From 9c0085d545d298c9be5690019f2cfc0c86f82ae5 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Mon, 12 Dec 2022 18:25:50 +0100
Subject: [PATCH] programs list in person page

---
 assets/sass/_theme/sections/persons.sass | 16 ++++++++++++++++
 layouts/partials/persons/programs.html   | 19 ++++++++-----------
 2 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/assets/sass/_theme/sections/persons.sass b/assets/sass/_theme/sections/persons.sass
index 7647a7db..d1a50211 100644
--- a/assets/sass/_theme/sections/persons.sass
+++ b/assets/sass/_theme/sections/persons.sass
@@ -1,3 +1,19 @@
+.persons__page
+    ol.programs
+        li
+            @include icon("arrow-right", "after", px2rem(10), true)
+                color: inherit
+            justify-content: flex-start
+            a
+                @include stretched-link(before)
+                color: inherit
+            p
+                flex: 1
+                &:nth-child(2)
+                    @include small
+            &:hover
+                color: $color-accent
+
 .person
     @include article
 
diff --git a/layouts/partials/persons/programs.html b/layouts/partials/persons/programs.html
index df2fa044..6162aea2 100644
--- a/layouts/partials/persons/programs.html
+++ b/layouts/partials/persons/programs.html
@@ -3,15 +3,12 @@
   <div class="top">
     <h2>{{ i18n "persons.programs" }}</h2>
   </div>
-  <table class="table-resume">
-    <caption>{{ i18n "persons.programs" }}</caption>
-    <tbody>
-      {{ range .programs }}
-      <tr>
-        <th>{{ safeHTML (index .Params.teachers_description $slug) }}</th>
-        <td><a href="{{ .Permalink }}" class="link link-more">{{ safeHTML .Title }}</a></td>
-      </tr>
-      {{ end }}
-    </tbody>
-  </table>
+  <ol class="programs" itemscope itemtype="https://schema.org/CreativeWork">
+    {{ range .programs }}
+      <li>
+        <p itemscope itemtype="https://schema.org/EducationalOccupationalProgram"><a href="{{ .Permalink }}" itemprop="name">{{ safeHTML .Title }}</a></p>
+        <p itemprop="educationalRole">{{ safeHTML (index .Params.teachers_description $slug) }}</p>
+      </li>
+    {{ end }}
+  </ul>
 </section>
-- 
GitLab