{{- define "main" -}} {{ $pub_type_csl := "" }} {{ $pub_type_display := "" }} {{ if .Params.publication_types }} {{ if reflect.IsSlice .Params.publication_types }} {{ $pub_type_csl = index .Params.publication_types 0 }} {{ $pub_type_display = i18n (printf "pub_%s" (strings.Replace $pub_type_csl "-" "_")) | default (strings.Title $pub_type_csl) }} {{ end }} {{ end }}
{{ .Params.abstract | markdownify }}
{{ end }} {{/* If the type is Uncategorized, hide the type. */}} {{ if $pub_type_display }}