We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d16507 + 3569125 commit ecae47dCopy full SHA for ecae47d
layouts/shortcodes/video.html
@@ -0,0 +1,11 @@
1
+<div class="ratio ratio-{{ with .Get "ratio" }}{{.}}{{ end }}">
2
+ <video{{ with .Get "attributes" }} {{ . | safeHTMLAttr }}{{ end }}>
3
+ {{ with .Get "webm-src" -}}
4
+ <source src="{{ . | relURL }}" type="video/webm">
5
+ {{ end -}}
6
+ {{ with .Get "mp4-src" -}}
7
+ <source src="{{ . | relURL }}" type="video/mp4">
8
9
+ Sorry, your browser doesn't support embedded videos.
10
+ </video>
11
+</div>
static/videos/flower.mp4
1.08 MB
static/videos/flower.webm
541 KB
0 commit comments