{{with .Issue}} {{if eq $.Page.Project.CardType 1}}{{/* Images and Text*/}} {{$attachments := index $.Page.issuesAttachmentMap .ID}} {{if $attachments}}