pages/layouts/partials/academia/list-single.html

48 lines
1.8 KiB
HTML
Raw Normal View History

<div class="d-flex py-2">
2022-02-14 23:10:50 -05:00
<div class="px-2">
<h3>
{{ if eq .Params.type "poster" }}<i class="fad fa-presentation" data-bs-toggle="tooltip" title="Poster"></i>{{ end }}
{{ if eq .Params.type "thesis" }}<i class="fad fa-graduation-cap" data-bs-toggle="tooltip" title="Thesis"></i>{{ end }}
2022-02-14 22:39:27 -05:00
{{ if eq .Params.type "presentation" }}<i class="fad fa-podium" data-bs-toggle="tooltip" title="Presentation"></i>{{ end }}
</h3>
{{ with .Params.link }}
<a class="btn btn-secondary dogear" href="{{ . }}" data-bs-toggle="tooltip" title="Full text"><i class="fad fa-file-alt"></i></a>
{{ end }}
</div>
2022-02-14 23:10:50 -05:00
<div class="flex-grow-1 px-2">
<h3>
{{ .Title }}
</h3>
{{ $authlist := .Params.authors }}
{{ range $idx, $auth := .Params.authors }}
{{ if and (eq $idx (sub (len $authlist) 1)) (gt 1 (len $authlist)) }}
and
{{ end }}
{{- if eq $auth "Thomas A. Christensen II" }}
<strong>{{ $auth }}</strong>
{{- else }}
{{ $auth }}
{{- end }}
{{- if lt $idx (sub (len $authlist) 1) -}}
,
{{- end }}
{{ end }}
<br />
{{ .Params.journal }}: {{ .Params.location }} ({{ dateFormat "02 Jan 2006" .Params.date }})
<br />
2022-02-14 22:41:09 -05:00
{{ with .Params.keywords }}
Keywords:
{{ range . }}
<a href="#">{{ . }}</a>
{{ end }}
<br />
{{ end }}
2022-02-14 22:44:53 -05:00
{{ if eq (.Scratch.Get "showAbstract") true }}
<details>
<summary>Abstract</summary>
{{ .Content }}
</details>
{{ end }}
</div>
</div>