diff --git a/layouts/persons/single.html b/layouts/persons/single.html index 047a1ac5c99c3f01ac1323f46936bf891c863e43..aac9ab21ff901746ff2fffb7f9f8b4ec9e28668b 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 2ad94562d93378396872348260e33c03ae6ebb7a..1543d8a6d77a0bbb19b20089ab35164c7afb24b8 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 }}