From 2c2dfbdccbbe89a33ad0cfe80411952f4c8e19f3 Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Mon, 22 Aug 2022 13:42:12 +0200
Subject: [PATCH] fix breadcrumb

---
 assets/js/theme/design-system/dropdowns.js | 2 ++
 assets/sass/_theme/_configuration.sass     | 2 +-
 assets/sass/_theme/sections/posts.sass     | 6 +++---
 layouts/partials/header/breadcrumbs.html   | 2 +-
 4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/assets/js/theme/design-system/dropdowns.js b/assets/js/theme/design-system/dropdowns.js
index 7d892a0f..79923dfb 100644
--- a/assets/js/theme/design-system/dropdowns.js
+++ b/assets/js/theme/design-system/dropdowns.js
@@ -28,3 +28,5 @@ class Dropdown {
         new Dropdown(selector);
     }
 });
+
+// TODO : A11Y fermer dropdown avec la touche escap + s'assurer de conserver l'emplacement du focus
diff --git a/assets/sass/_theme/_configuration.sass b/assets/sass/_theme/_configuration.sass
index b90f5be7..7474e61a 100644
--- a/assets/sass/_theme/_configuration.sass
+++ b/assets/sass/_theme/_configuration.sass
@@ -216,7 +216,7 @@ $program-share-font-size-md: $h5-size-md !default
 $program-zindex-toc: $zindex-toc !default
 
 // Layout posts list
-$posts-list-horizontal: false !default
+$posts-layout-list: false !default
 
 // MISC
 
diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass
index 8395cfac..c8f49443 100644
--- a/assets/sass/_theme/sections/posts.sass
+++ b/assets/sass/_theme/sections/posts.sass
@@ -18,7 +18,7 @@
     .hero
         margin-bottom: $spacing4
     
-    @if $posts-list-horizontal
+    @if $posts-layout-list
         .posts 
             @include grid(1)
             grid-gap: 0
@@ -30,7 +30,7 @@
                     display: flex
                     flex-direction: row
                     @include media-breakpoint-up(md)
-                        @include grid(12, md)
+                        @include grid
                     div:not(.media)
                         grid-column: 4/13
                         @include media-breakpoint-down(md)
@@ -53,7 +53,7 @@
                         div:not(.media)
                             p,
                             a
-                                max-width: col(8)
+                                max-width: col(6, 9)
                         
     @else 
         .posts
diff --git a/layouts/partials/header/breadcrumbs.html b/layouts/partials/header/breadcrumbs.html
index f9c7b194..6f4c83b5 100644
--- a/layouts/partials/header/breadcrumbs.html
+++ b/layouts/partials/header/breadcrumbs.html
@@ -52,7 +52,7 @@
       {{- else -}}
         <a itemprop="item" href="{{ .page.Permalink }}">
       {{- end }}
-        <span itemprop="name">{{- $title -}}</span>
+        <span itemprop="name">{{- partial "PrepareHTML" $title -}}</span>
         <meta itemprop="position" content="{{- .position -}}">
       {{ if .active -}}
         </span>
-- 
GitLab