author | title | date | description | layout | icon | tags |
---|---|---|---|---|---|---|
Mark Dumay |
YouTube |
2023-12-28 |
Use the youtube shortcode to embed a responsive video on your site. |
docs |
fab youtube |
component |
Use the youtube
shortcode to embed a responsive video on your site. Only the ID of the video is required. In {{< link hugo_youtube_privacy >}}privacy-enhanced mode{{< /link >}}, YouTube will not store information about visitors on your website unless the user plays the embedded video. As an example, the following shortcode displays a Hugo quickstart guide:
{{< example lang="hugo" >}} {{</* youtube w7Ft2ymGmfc */>}} {{< /example >}}
The shortcode supports the following arguments:
{{< args "youtube" >}}