From ddffdf7dde93ce08669eda17ffd5e555fb41b524 Mon Sep 17 00:00:00 2001
From: Ray <rwstorer@hotmail.com>
Date: Sun, 11 Jun 2023 03:11:32 +0000
Subject: [PATCH] another try with no params

---
 layouts/shortcodes/liteyoutube.html |    6 +++---
 exampleSite/go.sum                  |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index 70570f9..d819778 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -42,3 +42,5 @@
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611021301-f7396f1edb0b/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611022804-cdec55a13770 h1:Kl9D/nTVK2JlmwYrcT2y6yDpoMtaRLTI6mUJtwxK0tQ=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611022804-cdec55a13770/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611030846-a91f59280bbb h1:Wj03s4AZMZ2uVa6yMTDQ2SunKHsA6uh8pKRRBl6xyFc=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611030846-a91f59280bbb/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
diff --git a/layouts/shortcodes/liteyoutube.html b/layouts/shortcodes/liteyoutube.html
index 8bcb6fc..28cf3ed 100644
--- a/layouts/shortcodes/liteyoutube.html
+++ b/layouts/shortcodes/liteyoutube.html
@@ -2,12 +2,12 @@
   {{ $videoid := .Get "videoid" }} <!-- required. -->
   {{ $img := .Get "img" }} <!-- not required. The initial background image instead of a generated one. -->
   {{ $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 }}
+  {{ with $img }} {{ $img := absURL (printf "images/%s" $img) }} {{ end }}
   <lite-youtube videoid="{{$videoid}}"{{ with $bkImg }} style="background-image: url('{{ . }}')"{{ end }}{{ with $params }} params="{{ . }}"{{ end }}></lite-youtube>
 {{ else }}
   {{ $videoid := .Get 0 }} <!-- required. -->
   {{ $img := .Get 1 }} <!-- not required. The initial background image instead of a generated one. -->
   {{ $params := .Get 2 }} <!-- 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>
+  {{ with $img }} {{ $img := absURL (printf "images/%s" $img) }} {{ end }}
+  <lite-youtube videoid="{{$videoid}}"{{ with $img }} style="background-image: url('{{ . }}')"{{ end }}{{ with $params }} params="{{ . }}"{{ end }}></lite-youtube>
 {{ end }}

--
Gitblit v1.10.0