Add flexbox layout for academia icons

pull/5/head
parent 80ff5ea748
commit b354658c4a
Signed by: millironx
GPG Key ID: 139C07724802BC5D

@ -2,26 +2,34 @@
<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 }}
<div class="d-flex py-2">
<div class="px-1">
<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 }}
</h3>
</div>
<div class="flex-grow-1 px-1">
<h3>
<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 }}
</div>
</div>
{{ end }}
{{ end }}

Loading…
Cancel
Save