From ba80d65f45da95f0e1ed25a980d0fa032b278b32 Mon Sep 17 00:00:00 2001
From: Ray <rwstorer@hotmail.com>
Date: Sun, 11 Jun 2023 04:16:52 +0000
Subject: [PATCH] more debugging

---
 layouts/shortcodes/liteyoutube.html            |    6 ++++--
 exampleSite/content/docs/compose/shortcodes.md |    2 ++
 exampleSite/go.sum                             |    2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/exampleSite/content/docs/compose/shortcodes.md b/exampleSite/content/docs/compose/shortcodes.md
index 2e8b40b..124dc56 100644
--- a/exampleSite/content/docs/compose/shortcodes.md
+++ b/exampleSite/content/docs/compose/shortcodes.md
@@ -106,6 +106,8 @@
 
 {{< 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" >}}
+
 {{< tip >}}
 You can browse the full list of YouTube parameters [here](https://developers.google.com/youtube/player_parameters#Parameters)
 {{< /tip >}}
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index 04299dc..4dd00b6 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -54,3 +54,5 @@
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611034420-6b46b885a5f3/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611035253-44d4e6b24d65 h1:kcZ3SINPfK3QTk0cpn0j0KxSDyJWz32k9VAEbfKgc+s=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611035253-44d4e6b24d65/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611040011-726a11f5e7b8 h1:lpduewP+0F23NVASVa7WJ96JNxFfWeeKUybWjFhfSac=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611040011-726a11f5e7b8/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
diff --git a/layouts/shortcodes/liteyoutube.html b/layouts/shortcodes/liteyoutube.html
index 7efef7d..9a98bac 100644
--- a/layouts/shortcodes/liteyoutube.html
+++ b/layouts/shortcodes/liteyoutube.html
@@ -5,7 +5,8 @@
   {{ $params := .Get "params" }} <!-- not required. List of params here: https://developers.google.com/youtube/player_parameters -->
   {{ with $img }} {{ $bkImg := absURL (printf "images/%s" $img) }} {{ end }}
   <lite-youtube videoid="{{$videoid}}"{{ with $bkImg }} style="background-image: url('{{ . }}')"{{ end }}{{ with $params }} params="{{ . }}"{{ end }}></lite-youtube>
-  {{ printf "<!-- rayWithParams1 -->" }}
+  {{ printf "img = [{{$img}}]" }}
+  {{ printf "bkImg = [{{$bkImg}}]" }}
 {{ else }}
   {{- $videoid := .Get 0 -}} <!-- required. -->
   {{- $img := .Get 1 -}} <!-- not required. The initial background image instead of a generated one. -->
@@ -13,5 +14,6 @@
   {{ $bkImg := "" }}
   {{ with $img }} {{ $bkImg := absURL (printf "images/%s" $img) }} {{ end }}
   <lite-youtube videoid="{{$videoid}}"{{ with $bkImg }} style="background-image: url('{{ . }}')"{{ end }}{{ with $params }} params="{{ . }}"{{ end }}></lite-youtube>
-  {{ printf "<!-- rayNoParams1 -->" }}
+  {{ printf "img = [{{$img}}]" }}
+  {{ printf "bkImg = [{{$bkImg}}]" }}
 {{ end }}

--
Gitblit v1.10.0