From ec28a315861291c802cea7e2b45c9dc70559a87c Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Wed, 12 Jul 2023 15:29:23 +0200
Subject: [PATCH] fixes

---
 layouts/persons/single.html   | 4 +++-
 layouts/researchers/term.html | 8 +-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/layouts/persons/single.html b/layouts/persons/single.html
index 047a1ac5..aac9ab21 100644
--- a/layouts/persons/single.html
+++ b/layouts/persons/single.html
@@ -10,9 +10,10 @@
   {{- end }}
 
   {{ $author := site.GetPage (printf "/authors/%s" $slug) }}
+  {{ $researcher := site.GetPage (printf "/researchers/%s" $slug) }}
 
   {{ $posts := where $author.Pages "Section" "posts" }}
-  {{ $publications := where $author.Pages "Section" "publications" }}
+  {{ $publications := where $researcher.Pages "Section" "publications" }}
   {{ $papers := where $author.Pages "Section" "papers" }}
 
   {{ partial "persons/hero-single.html" . }}
@@ -72,6 +73,7 @@
         {{ partial "persons/programs.html" (dict "programs" $programsForTeacher "slug" $slug) }}
       {{ end }}
 
+      {{ $publications }}
       {{ if $publications }}
         {{ partial "persons/publications.html" (dict "publications" $publications) }}
       {{ end }}
diff --git a/layouts/researchers/term.html b/layouts/researchers/term.html
index 2ad94562..1543d8a6 100644
--- a/layouts/researchers/term.html
+++ b/layouts/researchers/term.html
@@ -5,13 +5,7 @@
           "context" .
         ) -}}
   <div class="document-content container">
-    <ul class="papers">
-      {{ range .Paginator.Pages }}
-        <li>
-          {{ partial "papers/paper.html" (dict "paper" . ) }}
-        </li>
-      {{ end }}
-    </ul>
+    {{ partial "publications/publications.html" . }}
     {{ partial "commons/pagination.html" . }}
   </div>
 {{ end }}
-- 
GitLab