Skip to content
Snippets Groups Projects
Commit 8262f1fc authored by Arnaud Levy's avatar Arnaud Levy
Browse files

paper authors wip

parent 69832195
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@
.content
@include media-breakpoint-up(desktop)
grid-column: 1 / 8
h2
@include meta
> div
margin-bottom: $spacing1
@include media-breakpoint-up(desktop)
......
......@@ -9,13 +9,21 @@
<span itemprop="name">{{ partial "PrepareHTML" .Title }}</span>
</a>
</h3>
{{- range $index, $authors := .Params.Researchers -}}
{{- $author := site.GetPage (printf "/persons/%s" .) -}}
{{- if ne $index 0 -}},{{ end }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span>
{{- end -}}
<div class="paper-authors">
{{- range $index, $authors := .Params.Researchers -}}
{{- $author := site.GetPage (printf "/persons/%s" .) -}}
{{ if $author }}
{{- if ne $index 0 -}},{{ end }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="{{ $author.Permalink }}" itemprop="url">
<span itemprop="name">{{ trim $author.Title "\n" }}</span>
</a>
</span>
{{- end -}}
{{- end -}}
</div>
<p class="paper-volume">
<span>Article</span>
<span>{{ .Params.paper_kind }}</span>
{{ if not $inside_volume }}
{{ range .Params.Volumes }}
{{ $volume := site.GetPage (printf "/volumes/%s" .) }}
......
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