aboutsummaryrefslogtreecommitdiff
path: root/content/overview-embedded-youtube.md
diff options
context:
space:
mode:
authorJieiku2022-05-31 01:50:30 -0700
committerJieiku2022-05-31 01:50:30 -0700
commitec161233068f6f634d81e07de94f64d7fcedc951 (patch)
tree19be6ebb6c6d360ca05472829f33e92cf0bc9833 /content/overview-embedded-youtube.md
parentd4a052e86f33ced79b9f4d09aeee0b1c43ef1f23 (diff)
downloadabridge-ec161233068f6f634d81e07de94f64d7fcedc951.tar.gz
abridge-ec161233068f6f634d81e07de94f64d7fcedc951.tar.bz2
abridge-ec161233068f6f634d81e07de94f64d7fcedc951.zip
Custom yt and vm shortcodes for youtube and vimeo
Diffstat (limited to 'content/overview-embedded-youtube.md')
-rw-r--r--content/overview-embedded-youtube.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/content/overview-embedded-youtube.md b/content/overview-embedded-youtube.md
index b9787be..0bcb4f2 100644
--- a/content/overview-embedded-youtube.md
+++ b/content/overview-embedded-youtube.md
@@ -12,6 +12,13 @@ Zola has many shortcodes, and new are easily added, this example shows youtube.
## Youtube
-with `yt(id="the_id_here" title="Vimeo - Gnome vs KDE")`
+with `yt(id="the_id_here")`
-{{ yt(id="32gyFIWecuw" title="Vimeo - Gnome vs KDE") }}
+- `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.
+
+{{ yt(id="32gyFIWecuw") }}