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

fix

parent adbfc7c5
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ persons: ...@@ -175,7 +175,7 @@ persons:
posts: Actualités publiées récemment posts: Actualités publiées récemment
programs: Enseignements programs: Enseignements
papers: Papiers papers: Papiers
publications: Publications publications: Publications récentes
papers: Papiers publiés récemment papers: Papiers publiés récemment
posts: posts:
author: Auteur·rice author: Auteur·rice
......
<section class="person-publications"> <section class="person-publications">
<div class="top"> <div class="top">
<h2 class="h5">{{ i18n "persons.publications" }}</h2> <h2 class="h5"><a href="{{ .researcher.Permalink }}">{{ i18n "persons.publications" }}</a></h2>
</div> </div>
<ul> <ul>
{{ range .publications }} {{ range first 3 .publications }}
<li> <li>
<article class="publication"> <article class="publication">
{{ $title := .Title }} {{ $title := .Title }}
......
...@@ -73,18 +73,8 @@ ...@@ -73,18 +73,8 @@
{{ partial "persons/programs.html" (dict "programs" $programsForTeacher "slug" $slug) }} {{ partial "persons/programs.html" (dict "programs" $programsForTeacher "slug" $slug) }}
{{ end }} {{ end }}
{{ if $publications }} {{ if $publications }}
{{ partial "persons/publications.html" (dict "publications" $publications "researcher" $researcher) }}
{{ $paginator := $researcher.Paginate $publications 3 }}
{{ range $paginator.Pages }}
{{ partial "publications/publication.html" . }}
{{ end }}
{{ partial "commons/pagination.html" (
dict "Paginator" $paginator
) }}
{{ end }} {{ end }}
{{ if $posts }} {{ if $posts }}
...@@ -94,7 +84,6 @@ ...@@ -94,7 +84,6 @@
{{ if $papers }} {{ if $papers }}
{{ partial "persons/papers.html" (dict "papers" $papers "slug" $slug) }} {{ partial "persons/papers.html" (dict "papers" $papers "slug" $slug) }}
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }} {{ 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