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

Ray
11.00.2023 726a11f5e7b84a5968a20d524af18ae57428e1d3
template debug
2 files modified
4 ■■■■ changed files
exampleSite/go.sum 2 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/liteyoutube.html 2 ●●●●● patch | view | raw | blame | history
exampleSite/go.sum
@@ -52,3 +52,5 @@
github.com/rwstorer/hugo-theme-compose v0.0.0-20230611033347-7c57127c2f46/go.mod h1:7TS3BoBV/IcLPRT2r7LyTyOqzsS5P5sXKlNpGgxdK/s=
github.com/rwstorer/hugo-theme-compose v0.0.0-20230611034420-6b46b885a5f3 h1:GdIR5ZgIV0OQyLBt7z7wph7ttrflg9Zu8t+URhCSMQA=
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=
layouts/shortcodes/liteyoutube.html
@@ -5,6 +5,7 @@
  {{ $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 -->" }}
{{ else }}
  {{- $videoid := .Get 0 -}} <!-- required. -->
  {{- $img := .Get 1 -}} <!-- not required. The initial background image instead of a generated one. -->
@@ -12,4 +13,5 @@
  {{ $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 -->" }}
{{ end }}