{{- $videoData := .Get 0 -}} {{- $dataFile := .Page.Resources.Get (printf "data/videos/%s.yaml" $videoData) -}} {{- if $dataFile -}} {{- $data := $dataFile.Content | transform.Unmarshal -}} {{- $video := .Page.Resources.Get $data.file -}} {{- if $video -}} {{- $hasMeta := or $data.title (or $data.description (or $data.attribution $data.prompt)) -}}
{{- if $hasMeta -}}
{{- with $data.title -}}

{{ . | markdownify }}

{{- end -}} {{- with $data.description -}}

{{ . | markdownify }}

{{- end -}}
{{- if or $data.attribution $data.prompt -}}
{{- with $data.attribution -}}

Attribution : {{ . | markdownify }}

{{- end -}} {{- with $data.prompt -}}
Prompt

{{ . | markdownify }}

{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}} {{- end -}}