diff --git a/i18n/fr.yml b/i18n/fr.yml index 40028ad48c30aad8795858d1db944fe63c487d6f..f1ad00c614dca442b440b0eeb3933e4536f28c57 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -175,7 +175,7 @@ persons: posts: Actualités publiées récemment programs: Enseignements papers: Papiers - publications: Publications + publications: Publications récentes papers: Papiers publiés récemment posts: author: Auteur·rice diff --git a/layouts/partials/persons/publications.html b/layouts/partials/persons/publications.html index 5bee29c16f1949ea03e448905c5112bcc3cfb487..b687e2b7b5206457014f3562c20f4bac976c84da 100644 --- a/layouts/partials/persons/publications.html +++ b/layouts/partials/persons/publications.html @@ -1,9 +1,9 @@ <section class="person-publications"> <div class="top"> - <h2 class="h5">{{ i18n "persons.publications" }}</h2> + <h2 class="h5"><a href="{{ .researcher.Permalink }}">{{ i18n "persons.publications" }}</a></h2> </div> <ul> - {{ range .publications }} + {{ range first 3 .publications }} <li> <article class="publication"> {{ $title := .Title }} diff --git a/layouts/persons/single.html b/layouts/persons/single.html index 115e4ebb712da430ee54f300183ae8336e94199d..3f52461ec5f8f2ca4103225d269d69bd9bf967d4 100644 --- a/layouts/persons/single.html +++ b/layouts/persons/single.html @@ -73,18 +73,8 @@ {{ partial "persons/programs.html" (dict "programs" $programsForTeacher "slug" $slug) }} {{ end }} - {{ if $publications }} - - {{ $paginator := $researcher.Paginate $publications 3 }} - - {{ range $paginator.Pages }} - {{ partial "publications/publication.html" . }} - {{ end }} - - {{ partial "commons/pagination.html" ( - dict "Paginator" $paginator - ) }} + {{ partial "persons/publications.html" (dict "publications" $publications "researcher" $researcher) }} {{ end }} {{ if $posts }} @@ -94,7 +84,6 @@ {{ if $papers }} {{ partial "persons/papers.html" (dict "papers" $papers "slug" $slug) }} {{ end }} - </div> </div> {{ end }}