mirror of
https://github.com/Findus23/guides.git
synced 2024-09-19 16:03:51 +02:00
13 lines
547 B
HTML
13 lines
547 B
HTML
<figure>
|
|
<video {{if .Get "loop"}} autoplay loop {{else}} preload="metadata"{{ end }}muted controls playsinline>
|
|
{{ with .Page.Resources.GetMatch (printf "*%s*" (.Get "src_webm")) }}
|
|
<source src="{{ .Permalink }}" type="video/webm; codecs=vp9">
|
|
{{ end }}
|
|
{{ with .Page.Resources.GetMatch (printf "*%s*" (.Get "src_mp4")) }}
|
|
<source src="{{ .Permalink }}" type="video/mp4">
|
|
{{ end }}
|
|
</video>
|
|
{{if .Get "title"}}
|
|
<figcaption>{{ .Get "title" }}</figcaption>
|
|
{{end}}
|
|
</figure>
|