| | |
| | | {{ $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. --> |
| | |
| | | {{ $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 }} |