diff --git a/i18n/en.yml b/i18n/en.yml index eebde23c40614fcb25f3e32c002603e040fb1cb3..d2c80d899cd4108ad4bf8678590c37aa91f4cad3 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -175,7 +175,7 @@ persons: posts: News programs: Programs papers: Papers - publications: Publications + publications: Latest publications posts: author: Author categories: Categories 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/posts.html b/layouts/partials/persons/posts.html index 654de7da322569e0c240568ff172776c3c10c962..827ada7d4019a5e4fdbe41e1a35efb7eee07ec48 100644 --- a/layouts/partials/persons/posts.html +++ b/layouts/partials/persons/posts.html @@ -1,6 +1,6 @@ <section> <div class="top"> - <h2 class="h5"><a href="{{ .Permalink }}">{{ i18n "persons.posts" }}</a></h2> + <h2 class="h5"><a href="{{ .author.Permalink }}">{{ i18n "persons.posts" }}</a></h2> </div> <div class="posts posts--{{- site.Params.posts.index.layout -}}"> {{ range first 3 .posts }} 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 047a1ac5c99c3f01ac1323f46936bf891c863e43..3f52461ec5f8f2ca4103225d269d69bd9bf967d4 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" . }} @@ -73,17 +74,16 @@ {{ end }} {{ if $publications }} - {{ partial "persons/publications.html" (dict "publications" $publications) }} + {{ partial "persons/publications.html" (dict "publications" $publications "researcher" $researcher) }} {{ end }} {{ if $posts }} - {{ partial "persons/posts.html" (dict "posts" $posts) }} + {{ partial "persons/posts.html" (dict "posts" $posts "author" $author) }} {{ end }} {{ if $papers }} {{ partial "persons/papers.html" (dict "papers" $papers "slug" $slug) }} {{ end }} - </div> </div> {{ 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 }}