You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
844 B
10 lines
844 B
3 years ago
|
{{ if .IsNamedParams }}
|
||
|
<div class="{{ with .Get "class" }}{{ . }}{{ else }}embed video-player{{ end }}">
|
||
|
<iframe class="youtube-player" type="text/html" width="{{ with .Get "width" }}{{ . }}{{ else }}560{{ end }}" height="{{ with .Get "height" }}{{ . }}{{ else }}315{{ end }}" sandbox="allow-same-origin allow-scripts allow-popups" {{ with .Get "title" }}title="{{ . }}"{{ end }} src="https://tube.xd0.de/videos/embed/{{ .Get "id" }}" frameborder="0" allowfullscreen></iframe>
|
||
|
</div>
|
||
|
{{ else }}
|
||
|
<div class="embed video-player">
|
||
|
<iframe class="youtube-player" type="text/html" width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" title="{{ if len .Params | eq 2 }}{{ .Get 1 }}{{ else }}{{ end }}" src="https://tube.xd0.de/videos/embed/{{ index .Params 0 }}" frameborder="0" allowfullscreen></iframe>
|
||
|
</div>
|
||
|
{{ end }}
|