{{ range $param := .Params }} {{ $items := split $param "|" }} {{ $src := (index $items 0) }} {{ $title := (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 }} {{ if $title }}

{{ $title }}

{{ end }}
{{ end }}