video.html (807B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
{{ if .Get "src" }}
<figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}"
style="{{- with .Get "width" -}} width:{{ . }}; {{- end -}}">
<video controls>
<source src="{{ .Get "src"}}">
<p>
Your Browser doesn't support html video. Here's a
<a href="{{ .Get "src"}}" download="{{ .Get "src"}}">
direct link
</a>
to the video.
</p>
</video>
{{ if .Get "caption" }}
<figcaption
class="
{{ with .Get "captionPosition"}}{{ . }}
{{ else -}} center
{{- end }}"
{{ with .Get "captionStyle" }}
style="{{ . | safeCSS }}"
{{ end }}>
{{ .Get "caption" | safeHTML }}
</figcaption>
{{ end }}
</figure>
{{ end }}
|