From 6b46b885a5f327738ffd62c7514728acf5043bbe Mon Sep 17 00:00:00 2001
From: Ray <rwstorer@hotmail.com>
Date: Sun, 11 Jun 2023 03:44:20 +0000
Subject: [PATCH] try begin and end dash

---
 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 e06e87b..ea96baa 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -48,3 +48,5 @@
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611031132-ddffdf7dde93/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611031251-11099f76fce2 h1:tWGK7hU0ptbaehbGSlvGpJQHvSUW6ksvBD5SGKqvFWI=
 github.com/rwstorer/hugo-theme-compose v0.0.0-20230611031251-11099f76fce2/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611033347-7c57127c2f46 h1:SXeF48TLLcxOMG2ZFpv2+hu9IhfrMWzPxYWEJ2UnATU=
+github.com/rwstorer/hugo-theme-compose v0.0.0-20230611033347-7c57127c2f46/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
diff --git a/layouts/shortcodes/liteyoutube.html b/layouts/shortcodes/liteyoutube.html
index d0d37b6..63ed79d 100644
--- a/layouts/shortcodes/liteyoutube.html
+++ b/layouts/shortcodes/liteyoutube.html
@@ -6,9 +6,9 @@
   {{ 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>
 {{ 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 -->
+  {{- $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 -->
   {{ $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>

--
Gitblit v1.10.0