mirror of https://github.com/onweru/compose.git

Ray
11.44.2023 6b46b885a5f327738ffd62c7514728acf5043bbe
try begin and end dash
2 files modified
8 ■■■■■ changed files
exampleSite/go.sum 2 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/liteyoutube.html 6 ●●●● patch | view | raw | blame | history
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=
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>