Hendrik Langer
3 years ago
3 changed files with 20 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
{{ 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 }} |
Loading…
Reference in new issue