{{ define "content" }}
{{- if .Description -}}

{{ .Description }}

{{ end }} {{ $content := .Content }} {{ if or .Content (.Resources.ByType "image")}}
{{- if .Content -}} {{- $content -}} {{ end }} {{ if .Resources.ByType "image" }} {{ range .Resources.ByType "image" }} {{ $picname := . }} {{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}} {{ . }}
{{ end }} {{ end }} {{ end }}
{{ end }}
{{ end }}