{{define "article-item"}}
{{$article := index .Event.Content "com.hummingbard.article"}} {{$img := index $article "featured_image"}} {{$mxc := ""}} {{if $img}} {{$mxc = index $img "mxc"}} {{end}} {{$ft := gt (len $mxc) 0}}
{{if $ft}} {{end}}
{{index $article "title"}}
{{$sub := index $article "subtitle"}} {{if $sub}} {{if gt (len $sub) 0}}
{{$sub}}
{{end}} {{end}} {{$des := index $article "description"}} {{if $des}} {{if gt (len $des) 0}}
{{$des}}
{{end}} {{end}}
{{end}}