Skip to content
Snippets Groups Projects
Unverified Commit b506f521 authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Clarification des liens sur la page d'une personne (#632)

parent 4713ddc1
No related branches found
No related tags found
No related merge requests found
......@@ -170,16 +170,24 @@ ol.persons--list
transition: transform .3s ease
&:hover::after
transform: translateX($spacing-2)
.more
@include icon-block(arrow-right-line, after)
display: inline-block
margin-top: $spacing-3
&::after
margin-left: space()
transition: 0.55s $arrow-ease-transition
&:hover:after
transform: translateX($spacing-1)
.person-publications
.publications
margin-top: $spacing-2
.person-posts
.posts
margin-top: $spacing-3
article.post:last-child
margin-bottom: 0
@include media-breakpoint-up(desktop)
.posts
article.post:last-child
margin-bottom: 0
@include media-breakpoint-up(desktop)
margin-top: $spacing-4
section
padding-bottom: $spacing-5
......
......@@ -231,10 +231,16 @@ papers:
references: References
content: Content
persons:
posts: News
programs: Programs
papers: Papers
publications: Latest publications
posts:
recent: Latest news
all: View all news posted by {{ .author }}
papers:
recent: Latest papers
all: View all papers published by {{ .author }}
publications:
recent: Latest publications
all: View all publications by {{ .author }}
programs: Teachings
backlinks:
events: Events mentioning
pages: Pages mentioning
......
......@@ -231,11 +231,16 @@ papers:
references: Références
content: Texte intégral
persons:
posts: Actualités publiées récemment
posts:
recent: Actualités publiées récemment
all: Voir toutes les actualités publiées par {{ .author }}
papers:
recent: Papiers publiés récemment
all: Voir tous les papiers publiés par {{ .author }}
publications:
recent: Publications récentes
all: Voir toutes les publications de {{ .author }}
programs: Enseignements
papers: Papiers
publications: Publications récentes
papers: Papiers publiés récemment
backlinks:
events: Événements mentionnant
pages: Pages mentionnant
......
......@@ -4,8 +4,8 @@
{{ $heading_level := .heading_level | default 3 }}
{{ $heading_tag := (dict
"open" ((printf "<h%s class='paper-title' itemprop='headline'>" $heading_level) | safeHTML)
"close" ((printf "</h%s>" $heading_level) | safeHTML)
"open" ((printf "<h%d class='paper-title' itemprop='headline'>" $heading_level) | safeHTML)
"close" ((printf "</h%d>" $heading_level) | safeHTML)
) }}
{{ with .paper }}
......
{{ $researchers := site.GetPage (printf "/researchers/%s" .slug) }}
{{ $researcher := .researcher }}
<section class="persons-papers">
<div class="top">
<h2>{{ i18n "persons.papers" }}</h2>
<a href="{{ $researchers.Permalink }}" class="link">{{ i18n "persons.papers" }}</a>
<h2 class="h5">{{ i18n "persons.papers.recent" }}</h2>
</div>
<ul class="papers">
{{ range first 3 .papers }}
<li>
{{ partial "papers/paper.html" (dict "paper" . ) }}
</li>
<li>
{{ partial "papers/paper.html" (dict "paper" .) }}
</li>
{{ end }}
</ul>
<a href="{{ $researcher.Permalink }}" class="more">{{ i18n "persons.papers.all" (dict "author" $researcher.Params.person) }}</a>
</section>
<section class="person-posts">
<div class="top">
<h2 class="h5"><a href="{{ .author.Permalink }}">{{ i18n "persons.posts" }}</a></h2>
<h2 class="h5">{{ i18n "persons.posts.recent" }}</h2>
</div>
<div class="posts posts--{{- site.Params.posts.index.layout -}}">
{{ range first 3 .posts }}
......@@ -10,4 +10,5 @@
)}}
{{ end }}
</div>
<a href="{{ .author.Permalink }}" class="more">{{ i18n "persons.posts.all" (dict "author" .author.Params.Person )}}</a>
</section>
......@@ -3,7 +3,7 @@
<section class="person-publications">
<div class="top">
<h2 class="h5"><a href="{{ $researcher.Permalink }}">{{ i18n "persons.publications" }}</a></h2>
<h2 class="h5">{{ i18n "persons.publications.recent" }}</h2>
</div>
<div class="publications">
{{ range first 3 $publications }}
......@@ -12,5 +12,8 @@
"researcher" $researcher
)}}
{{ end }}
{{ if $researcher.Params }}
<a href="{{ .author.Permalink }}" class="more">{{ i18n "persons.publications.all" (dict "author" $researcher.Params.person) }}</a>
{{ end }}
</div>
</section>
\ No newline at end of file
......@@ -14,7 +14,7 @@
{{ $posts := where $author.Pages "Section" "posts" }}
{{ $publications := where $researcher.Pages "Section" "publications" }}
{{ $papers := where $author.Pages "Section" "papers" }}
{{ $papers := where $researcher.Pages "Section" "papers" }}
{{ partial "persons/hero-single.html" . }}
......@@ -92,7 +92,7 @@
{{ end }}
{{ if $papers }}
{{ partial "persons/papers.html" (dict "papers" $papers "slug" $slug) }}
{{ partial "persons/papers.html" (dict "papers" $papers "researcher" $researcher) }}
{{ end }}
</div>
......
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