You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
529 B
HTML
14 lines
529 B
HTML
|
|
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
|
<div class="flex-video">
|
|
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/{{ .Get "videoId" }}" allowfullscreen frameborder="0">
|
|
</iframe>
|
|
</div>
|
|
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
|
<figcaption>
|
|
{{ if isset .Params "title" }}<h4>{{ .Get "title" }}</h4>{{ end }}
|
|
{{ if or (.Get "caption") (.Get "attr")}}<p>{{ .Get "caption" }}</p> {{ end }}
|
|
</figcaption>
|
|
{{ end }}
|
|
</figure>
|