From 7cf91bec8848ab0925feec9139f270cd9b3eba3c Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Tue, 17 Jan 2023 15:49:22 +0100
Subject: [PATCH] fix breadcrumb in person single hero

---
 layouts/partials/persons/hero-single.html | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/layouts/partials/persons/hero-single.html b/layouts/partials/persons/hero-single.html
index 74dd7b9f..37e43527 100644
--- a/layouts/partials/persons/hero-single.html
+++ b/layouts/partials/persons/hero-single.html
@@ -1,6 +1,8 @@
 <header class="hero">
   <div class="container">
-    {{ partial "header/breadcrumbs.html" . }}
+    {{- if eq site.Params.breadcrumb.position "hero-start" -}}
+      {{ partial "header/breadcrumbs.html" . }}
+    {{- end -}}
     <div class="content">
       <h1>{{ safeHTML (partial "CorrectPunctuation" .Title) }}</h1>
       {{ if .Params.image }}
@@ -14,5 +16,14 @@
         </div>
       {{ end }}
     </div>
+    {{- if eq site.Params.breadcrumb.position "hero-end" -}}
+      {{ partial "header/breadcrumbs.html" . }}
+    {{- end -}}
   </div>
 </header>
+
+{{- if eq site.Params.breadcrumb.position "after-hero" -}}
+  <div class="container">
+    {{ partial "header/breadcrumbs.html" . }}
+  </div>
+{{- end -}}
\ No newline at end of file
-- 
GitLab