From 1c136fa6e3901ef588b24c9daf35ea4865b9fef5 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Fri, 5 Apr 2024 11:53:47 +0200
Subject: [PATCH] fix person hero caption

---
 assets/sass/_theme/sections/persons.sass  | 2 +-
 layouts/partials/persons/hero-single.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/sass/_theme/sections/persons.sass b/assets/sass/_theme/sections/persons.sass
index e974002d..f22c8cca 100644
--- a/assets/sass/_theme/sections/persons.sass
+++ b/assets/sass/_theme/sections/persons.sass
@@ -126,7 +126,7 @@ ol.persons--list
         &--with-image
             .hero-text
                 margin-bottom: $spacing-3
-            figure
+            figure picture
                 @extend .avatar
             @include media-breakpoint-down(desktop)
                 .container
diff --git a/layouts/partials/persons/hero-single.html b/layouts/partials/persons/hero-single.html
index 2c6f6e83..b06f620c 100644
--- a/layouts/partials/persons/hero-single.html
+++ b/layouts/partials/persons/hero-single.html
@@ -13,7 +13,7 @@
 {{- partial "header/hero.html"
       (dict
         "title" $title
-        "image" $image
+        "image" .Params.image
         "context" .
         "sizes" site.Params.image_sizes.sections.persons.hero_single
       ) -}}
-- 
GitLab