{{- 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 }}
{{ partial "page_header.html" . }}
{{ if .Params.abstract }}

{{ i18n "abstract" }}

{{ .Params.abstract | markdownify }}

{{ end }} {{/* If the type is Uncategorized, hide the type. */}} {{ if $pub_type_display }}
{{ i18n "publication_type" }}
{{ end }} {{ if .Params.publication }}
{{ i18n "publication" }}
{{ .Params.publication | markdownify }}
{{ end }}
{{ .Content }}
{{ partial "page_footer" . }}
{{- end -}}