aboutsummaryrefslogtreecommitdiff
path: root/content/overview-embed-youtube.md
diff options
context:
space:
mode:
authorJieiku2023-08-17 12:16:18 -0700
committerJieiku2023-08-17 12:16:18 -0700
commit3e5d8a96e9eae21a799f327cd8a52adb891ebe66 (patch)
tree6a1377b5207e4e3555f65ca162014468c64d6985 /content/overview-embed-youtube.md
parent1d9be812c25508a5dc36afb9e80669b668a47190 (diff)
parent0983915e23793c28dd0bee149fd2ec05a7e96a94 (diff)
downloadabridge-3e5d8a96e9eae21a799f327cd8a52adb891ebe66.tar.gz
abridge-3e5d8a96e9eae21a799f327cd8a52adb891ebe66.tar.bz2
abridge-3e5d8a96e9eae21a799f327cd8a52adb891ebe66.zip
resolve merge conflicts
Diffstat (limited to 'content/overview-embed-youtube.md')
-rw-r--r--content/overview-embed-youtube.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/content/overview-embed-youtube.md b/content/overview-embed-youtube.md
new file mode 100644
index 0000000..f247a7f
--- /dev/null
+++ b/content/overview-embed-youtube.md
@@ -0,0 +1,36 @@
++++
+title = "Embed Youtube Video"
+description = "Sample article showcasing a custom Zola shortcode for embedding Youtube Videos into your pages."
+date = 2021-05-08
+draft = false
+
+[taxonomies]
+categories = ["Features"]
+tags = ["shortcodes","video"]
+[extra]
+keywords = "Video, Shortcodes, Embed, Embedded, Youtube"
++++
+
+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 &lt;div&gt; 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") }}