sandvich.xyz/layouts/shortcodes/video.html

11 lines
208 B
HTML

<figure>
{{ with .Get "src" }}
<video controls src="{{ . }}"></video>
{{ end }}
{{- with $.Inner }}
<figcaption>
{{ . }}
</figcaption>
{{- end }}
</figure>