From 80ff5ea748fdd1e1860086e753fc423ec8b758a0 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 2 Feb 2022 21:34:15 -0600 Subject: [PATCH] Show titles and authors of featured publications on academia page --- layouts/academia/list.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 layouts/academia/list.html diff --git a/layouts/academia/list.html b/layouts/academia/list.html new file mode 100644 index 0000000..cfd37ed --- /dev/null +++ b/layouts/academia/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} +

Selected Presentations

+ {{ $featuredpubs := where .Pages ".Params.featured" "==" true }} + {{ range $featuredpubs }} +

+ {{ if eq .Params.type "poster" }}{{ end }} + {{ if eq .Params.type "thesis" }}{{ end }} + + {{ .Title }} + +

+ {{ $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" }} + {{ $auth }} + {{- else }} + {{ $auth }} + {{- end }} + {{- if lt $idx (sub (len $authlist) 1) -}} + , + {{- end }} + {{ end }} + {{ end }} +{{ end }}