{{- $src := ((.Get "src") | default (.Get 0)) -}} {{- $external := ((.Get "external") | default false) -}} {{- /* "Check if the file exists in the /static directory. Skip any external icons" */ -}} {{- if or (fileExists (print "static/" $src)) (in $src "icons.cumulusnetworks.com") ($external) -}} {{.Get {{- else -}} {{- /* "If the file doesn't exist, print the .md file and image" */ -}} {{- errorf "broken img tag in %s. %s" .Position $src -}} {{- end -}}