Skip to content
Snippets Groups Projects
Unverified Commit 9c8a3328 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Merge pull request #133 from noesya/fix-publications

Fix publications
parents 7e76589e eab59f44
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ persons:
posts: News
programs: Programs
papers: Papers
publications: Publications
publications: Latest publications
posts:
author: Author
categories: Categories
......
......@@ -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
......
<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 }}
......
<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 }}
......
......@@ -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 }}
......@@ -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