{{ define "results" }} {{ $maxContentItems := .Consts.SiteMaxEntryContentItems }} {{ $numResults := (min (len .Data.Results.Entries) 10) }}
    {{- range $k, $r := (mustSlice .Data.Results.Entries 0 $numResults) -}}
  1. {{ $r.Content | join ", " }}

    {{- if $r.Meta.audio -}} {{ $.L.T {{- end -}} {{- if $.Consts.EnableSubmissions -}} ✏️ {{- end -}}
    {{- if $r.Phones -}} ♪ {{ $r.Phones | join "," }} {{- end -}}
    {{- if $r.Tags -}} {{- range $tag := $r.Tags -}} {{ $tag }} {{- end -}} {{- end -}} Share screenshot
    {{- if $r.Relations -}} {{- $lastType := "" -}} {{- range $k, $d := $r.Relations -}} {{- $types := ($d.RelationTypes | join ", ") -}} {{- if ne $lastType $types -}} {{- if $lastType -}}
{{- end }}
    {{ if $d.RelationTypes }}
  1. {{- range $t := $d.RelationTypes -}} {{- $dType := index (index $.Langs $r.Lang).Types $t }} {{- if $dType }}{{ $dType }} {{ end -}} {{- $rType := index (index $.Langs $d.Lang).Types $t }} {{- if $rType }}({{ $rType }}){{ end -}} {{- end -}}
  2. {{ end }} {{- end -}}
  3. {{ $d.Content | join ", " }} {{ if or (gt $d.ContentLength $maxContentItems) $d.Meta.synonyms -}} {{- end -}} {{- if $.Consts.EnableSubmissions }} ✏️ {{ end -}}
  4. {{ $lastType = $types }} {{- end -}}
{{ end }} {{- end -}}
{{ end }}