From ba30a59c478715056ac2d01d16aac75a22ea0628 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 21 Sep 2023 01:34:48 -0700 Subject: Transparent Section for Organization --- .../overview-embed-youtube.md | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 content/video-streaming-sites/overview-embed-youtube.md (limited to 'content/video-streaming-sites/overview-embed-youtube.md') diff --git a/content/video-streaming-sites/overview-embed-youtube.md b/content/video-streaming-sites/overview-embed-youtube.md new file mode 100644 index 0000000..b5cc066 --- /dev/null +++ b/content/video-streaming-sites/overview-embed-youtube.md @@ -0,0 +1,37 @@ ++++ +title = "Embed Youtube" +description = "Sample article showcasing a custom Zola shortcode for embedding Youtube Videos into your pages." +date = 2021-05-08 +draft = false + +[taxonomies] +tags = ["Features","Shortcodes","Video"] +[extra] +keywords = "Video, Shortcodes, Embed, Embedded, Youtube" +toc = true +section = "Features" ++++ + +Zola has many shortcodes, and new are easily added, this example shows youtube. + + +## Youtube + +### Usage + +```rs +{{/* youtube(id="32gyFIWecuw") */}} +``` + +- `id`: the video id (mandatory) +- `playlist`: the playlist id (optional) +- `class`: a class to add to the <div> surrounding the iframe (optional) +- `autoplay`: when set to "true", the video autoplays on load (optional) +- `title` - set alt title for the iframe (optional, defaults to "Youtube") +- `cookie` - set to "true" if you want tracking cookies, otherwise it defaults to false. + +### Output +```html +{{ youtube(id="32gyFIWecuw") }} +``` +{{ youtube(id="32gyFIWecuw") }} -- cgit v1.3.1