| exampleSite/go.sum | ●●●●● patch | view | raw | blame | history | |
| layouts/shortcodes/liteyoutube.html | ●●●●● patch | view | raw | blame | history |
exampleSite/go.sum
@@ -44,3 +44,5 @@ 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= github.com/rwstorer/hugo-theme-compose v0.0.0-20230611031132-ddffdf7dde93 h1:TtzPjBvXJjWYhqPDFumnS4xDFVfAlJEXBFuuhoBK4/U= github.com/rwstorer/hugo-theme-compose v0.0.0-20230611031132-ddffdf7dde93/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s= layouts/shortcodes/liteyoutube.html
@@ -3,7 +3,7 @@ {{ $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 }} {{ $img := absURL (printf "images/%s" $img) }} {{ end }} <lite-youtube videoid="{{$videoid}}"{{ with $bkImg }} style="background-image: url('{{ . }}')"{{ end }}{{ with $params }} params="{{ . }}"{{ end }}></lite-youtube> <lite-youtube videoid="{{$videoid}}"{{ with $img }} 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. -->