{{ $title := .Get 0 }}
{{ range $param := last (sub (len .Params) 1) .Params }} {{ $items := split $param "|" }} {{ $src := (index $items 0) }} {{ $subtitle := (index $items 1) }} {{ $split_src := split $src "." }} {{ $extension := index $split_src (sub (len $split_src) 1) }}
{{ if eq $extension "mp4" }} {{ else }} {{- if eq $extension "png" -}} {{ $title }} {{- else -}} {{ $title }} {{- end -}} {{ end }}
{{ end }}
{{ if $title }}

{{ $title }}

{{ end }}