-
Hello, I want to reference a video in the assets directory. This is my shortcode. {{< video src="videos/misc/say-my-name.mp4" controls="true" >}} But the error comes out. ERROR No file with filename "videos/misc/say-my-name.mp4" found. So I check the file {{- $video_files := (.Page.Resources.Match (printf "%s*" $video_src)) -}} It seems that it only support page resources. {{- $global_video_files := (resources.Match (printf "%s*" $video_src)) -}}
{{- $video_files := (.Page.Resources.Match (printf "%s*" $video_src)) -}}
{{- $video_files = $video_files | append $global_video_files -}} What is the best practice to do that? I'm not sure if I should retrieve it from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it should support page resources, global resources, and remote resources (align with Resource Locations for images). So, using this logic |
Beta Was this translation helpful? Give feedback.
I think it should support page resources, global resources, and remote resources (align with Resource Locations for images).
So, using this logic