From f7396f1edb0b52689dcd0a0674a84c40c40440e3 Mon Sep 17 00:00:00 2001
From: Ray <rwstorer@hotmail.com>
Date: Sun, 11 Jun 2023 02:13:01 +0000
Subject: [PATCH] with and no params
---
exampleSite/content/docs/compose/shortcodes.md | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/exampleSite/content/docs/compose/shortcodes.md b/exampleSite/content/docs/compose/shortcodes.md
index d004017..2e8b40b 100644
--- a/exampleSite/content/docs/compose/shortcodes.md
+++ b/exampleSite/content/docs/compose/shortcodes.md
@@ -78,13 +78,15 @@
| params | YouTube parameters | yes |
| img | Background image from static/images | yes |
-##### With only `videoid`
+##### With no Parameters
+
+This example shows only supplying the required `videoid` (without a named parameter). You can also add the `img` and `params` parameters (in that order) without using named parameters.
```markdown
-{{</* liteyoutube videoid="MmG2ah5Df4g" */>}}
+{{</* liteyoutube "MmG2ah5Df4g" */>}}
```
-{{< liteyoutube videoid="MmG2ah5Df4g" >}}
+{{< liteyoutube "MmG2ah5Df4g" >}}
##### With `videoid` and `params`
@@ -99,10 +101,10 @@
##### With All Three Parameters
```markdown
-{{</* liteyoutube videoid="MmG2ah5Df4g" img="painting.jpg" params="controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" */>}}
+{{</* liteyoutube "MmG2ah5Df4g" "painting.jpg" "controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" */>}}
```
-{{< liteyoutube videoid="MmG2ah5Df4g" img="painting.jpg" params="controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" >}}
+{{< liteyoutube "MmG2ah5Df4g" "painting.jpg" "controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" >}}
{{< tip >}}
You can browse the full list of YouTube parameters [here](https://developers.google.com/youtube/player_parameters#Parameters)
--
Gitblit v1.10.0