Show titles and authors of featured publications on academia page
This commit is contained in:
parent
76b5453510
commit
80ff5ea748
1 changed files with 27 additions and 0 deletions
27
layouts/academia/list.html
Normal file
27
layouts/academia/list.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h2>Selected Presentations</h2>
|
||||||
|
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
|
||||||
|
{{ range $featuredpubs }}
|
||||||
|
<h3>
|
||||||
|
{{ if eq .Params.type "poster" }}<i class="fad fa-presentation"></i>{{ end }}
|
||||||
|
{{ if eq .Params.type "thesis" }}<i class="fad fa-graduation-cap"></i>{{ end }}
|
||||||
|
<a href="{{ .Permalink }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</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 }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
Loading…
Reference in a new issue