{{ $ := .root }} {{ $page := .page }}
{{ . | markdownify }}
{{ end }}{{ . | markdownify }}
{{ end }} {{ if and ($page.Params.publication_type) (ne $page.Params.publication_type "-1") }} {{ $.Scratch.Set "sel_pubs" (where (where (where $.Site.RegularPages "Type" "publication") ".Params.featured" true) ".Params.publication_types" "intersect" (slice $page.Params.publication_type)) }} {{ else }} {{ $.Scratch.Set "sel_pubs" (where (where $.Site.RegularPages "Type" "publication") ".Params.featured" true) }} {{ end }} {{ $sel_pubs := $.Scratch.Get "sel_pubs" }} {{ range $sel_pubs }} {{ if eq $page.Params.view 1 }} {{ partial "publication_li_list" . }} {{ else if eq $page.Params.view 3 }} {{ partial "publication_li_card" . }} {{ else if eq $page.Params.view 4 }} {{ partial "publication_li_citation" . }} {{ else }} {{ partial "publication_li_compact" . }} {{ end }} {{ end }}