{{- $video := .Page.Resources.GetMatch (.Get "src") -}} {{ if $video -}} {{- else -}} video-error {{- end -}}