{{- $videoData := .Get 0 -}} {{- $alignment := .Get 1 | default "center" -}} {{- $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 -}}
{{- if $data.prompt }}
Attribution : {{- with $data.attribution }} {{ . | markdownify }} {{- end }} {{- with $data.prompt }}

Prompt : {{ . }}

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

{{ .| markdownify }}

{{- end }} {{- else }} {{- with $data.attribution }}

Attribution : {{ . | markdownify }}

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

{{ .| markdownify }}

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