{{ define "file" }} {{ template "header" . }} {{ template "layout" . }} {{ if .Content.File.IsVideo }} {{ else }} {{ if .Content.File.IsImage }} {{ .Content.File.Name }} {{ else }} {{ end }} {{ end }} {{ template "footer" . }} {{ end }}