{{ $item := .item }} {{ $year_value := $item.Params.event_start | default $item.Date }} {{ $year := (time $year_value).Format "2006" }} {{ $has_attachments := partial "functions/has_attachments" $item }} {{ $pub := partial "functions/resolve_publication.html" $item }} {{ $top_award := "" }} {{ with $item.Params.awards }}{{ $top_award = index . 0 }}{{ end }}
{{/* APA Style */}} {{ if eq (site.Params.hugoblox.content.citations.style | default "apa") "apa" }} {{ partial "page_metadata_authors" $item }} ({{- $year -}}). {{ $item.Title }}. {{ with $pub.display_short }}{{- . | markdownify -}}.{{ end }} {{ with $top_award }} {{ partial "components/award_badge.html" (dict "award" . "page" $item "variant" "inline") }} {{ end }} {{ if $has_attachments }}
{{ partial "page_links" (dict "page" $item "is_list" 1) }}
{{ end }} {{/* MLA Style */}} {{ else }} {{ partial "page_metadata_authors" $item }}. {{ $item.Title }}. {{ with $pub.display_short }}{{- . | markdownify -}},{{ end }} {{- $year -}}. {{ with $top_award }} {{ partial "components/award_badge.html" (dict "award" . "page" $item "variant" "inline") }} {{ end }} {{ if $has_attachments }}
{{ partial "page_links" (dict "page" $item "is_list" 1) }}
{{ end }} {{ end }}