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
srcstringRequired. 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.
heightstringHeight of the video element.
autoplaystringSet to "true" to autoplay.
loopstringSet to "true" to loop.
mutedstringSet 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" >}}