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

30 lines
787 B
HTML
Raw Normal View History

2019-10-10 19:30:34 +02:00
<ul class="publications">
{{ $authors := .Page.Params.authors }}
2020-07-25 14:14:57 +02:00
{{ range sort .Page.Params.publications "year" "desc" }}
2019-10-10 19:30:34 +02:00
<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 -}}
2020-06-19 16:55:43 +02:00
</span>
{{- end -}}
{{- end -}}
{{- end -}}
</span>.
2019-10-10 19:30:34 +02:00
<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>