Erki 9f0e6fe37f
All checks were successful
Build and push latest / publish (push) Successful in 49s
Preparing for the first post
2024-09-28 19:33:00 +03:00

23 lines
566 B
HTML

<style>
.video-shortcode {
max-width: 100%;
height: auto;
margin: auto;
display: block;
}
</style>
<figure>
<video class="video-shortcode" preload="{{ .Get "preload" }}" controls>
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
There should have been a video here but your browser does not seem
to support it.
</video>
<figcaption>
{{- if or (.Get "caption") (.Get "attr")}}
<p class="caption">
{{- .Get "caption" -}}
</p>
{{- end}}
</figcaption>
</figure>