Use the video shortcode to embed a self-hosted video from the page bundle. Place the video file(s) in the same folder as your index.md and reference them by filename without extension.

Supported formats: .mp4 / .m4v, .webm, .ogv. Multiple formats can coexist — the shortcode adds a <source> for each one found.

Usage

{{< video src="my-video" >}}

Parameters

ParameterTypeDefaultDescription
srcstring—Required. Filename without extension, matched against page bundle resources.
controlsstring"true"Set to "false" to hide the player controls.
widthstring"100%"Width of the video element.
heightstring—Height of the video element.
autoplaystring—Set to "true" to autoplay.
loopstring—Set to "true" to loop.
mutedstring—Set to "true" to mute.

A poster image is detected automatically if an image file with the same name exists in the page bundle.

Example

Preview
{{< video src="robin_-_21723 (540p)" autoplay="true" muted="true" >}}