tobast.fr-hugo/layouts/shortcodes/list-publications.html

29 lines
762 B
HTML

<ul class="publications">
{{ $authors := .Page.Params.authors }}
{{ range .Page.Params.publications }}
<li>
<span class="authors">
{{ range .authors }}
{{ $author := . }}
{{ with $authors }}
{{ with (index . $author) }}
<span class="author">
{{- if isset . "page" -}}
<a href="{{ .page }}">{{ .name }}</a>
{{- else -}}
{{ .name -}}
{{- end -}}
</span>,
{{ end }}
{{ end }}
{{ end }}
</span>
<span class="title">{{ .title }}</span> in
<span class="journal">{{ .journal }}</span>
{{ range .links }}
<span class="doclink"><a href="{{ .url }}">[{{ .name }}]</a></span>
{{ end }}
</li>
{{ end }}
</ul>