diff options
Diffstat (limited to 'content/overview-embed-youtube.md')
| -rw-r--r-- | content/overview-embed-youtube.md | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/content/overview-embed-youtube.md b/content/overview-embed-youtube.md deleted file mode 100644 index b5cc066..0000000 --- a/content/overview-embed-youtube.md +++ /dev/null @@ -1,37 +0,0 @@ -+++ -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. -<!-- more --> - -## 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") }} |
