diff options
| author | Jieiku | 2022-05-31 01:50:30 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-31 01:50:30 -0700 |
| commit | ec161233068f6f634d81e07de94f64d7fcedc951 (patch) | |
| tree | 19be6ebb6c6d360ca05472829f33e92cf0bc9833 /content/overview-embedded-vimeo.md | |
| parent | d4a052e86f33ced79b9f4d09aeee0b1c43ef1f23 (diff) | |
| download | abridge-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-vimeo.md')
| -rw-r--r-- | content/overview-embedded-vimeo.md | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/content/overview-embedded-vimeo.md b/content/overview-embedded-vimeo.md index e9dc03d..319c129 100644 --- a/content/overview-embedded-vimeo.md +++ b/content/overview-embedded-vimeo.md @@ -12,6 +12,14 @@ Zola has many shortcodes, and new are easily added, this example shows vimeo. ## Vimeo -with `vm(id="id_here" title="Youtube - Safe Systems Programming in Rust")` +with `vm(id="id_here")` -{{ vm(id="514402648" title="Youtube - Safe Systems Programming in Rust") }} +- `id`: the video id (mandatory) +- `class`: a class to add to the <div> surrounding the iframe (optional) +- `autoplay`: when set to "true", the video autoplays on load (optional) +- `loop`: when set to "true", the video plays on a loop (optional) +- `noautopause`: when set to "true", the video will not autopause (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. + +{{ vm(id="514402648") }} |
