{{ if .Params.image_preview }} {{ .Scratch.Set "image" .Params.image_preview }} {{ else if .Params.header.image }} {{ .Scratch.Set "image" .Params.header.image }} {{ end }} {{ if .Scratch.Get "image" }}
{{ $img_src := urls.Parse (.Scratch.Get "image") }} {{ if $img_src.Scheme }} {{ else }} {{ end }}
{{ end }}

{{ if .Params.abstract_short }} {{ .Params.abstract_short | markdownify }} {{ else }} {{ .Params.abstract | markdownify}} {{ end }}
{{ if .Params.publication_short }} {{ .Params.publication_short | markdownify }}, {{ else if .Params.publication }} {{ .Params.publication | markdownify }}, {{ end }} {{ .Date.Format "2006" }}