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

30 lines
787 B
HTML

<ul class="publications">
{{ $authors := .Page.Params.authors }}
{{ range sort .Page.Params.publications "year" "desc" }}
<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>