Skip to content
Snippets Groups Projects
Commit ec28a315 authored by alexisben's avatar alexisben
Browse files

fixes

parent 7e76589e
No related branches found
No related tags found
No related merge requests found
......@@ -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 }}
......
......@@ -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 }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment