shortcodes: Fix mp4 size
This commit is contained in:
parent
f57272cf42
commit
f9833cfc1f
@ -1,13 +1,15 @@
|
|||||||
<figure>
|
<figure>
|
||||||
<video preload="auto" controls>
|
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;">
|
||||||
<source src="{{ .Get "src" }}" type="video/mp4">
|
<video preload="auto" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" controls>
|
||||||
Your browser doesn't support mp4 video. :(
|
<source src="{{ .Get "src" }}" type="video/mp4">
|
||||||
</video>
|
Your browser doesn't support mp4 video. :(
|
||||||
{{ with .Get "title" }}
|
</video>
|
||||||
<figcaption>
|
{{ with .Get "title" }}
|
||||||
<h4>
|
<figcaption>
|
||||||
|
<h4>
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</h4>
|
</h4>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</figure>
|
</div>
|
||||||
|
</figure>
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
<figure>
|
|
||||||
<video preload="auto" controls>
|
|
||||||
<source src="{{ .Get "src" }}" type="video/webm">
|
|
||||||
Your browser doesn't support webm video. :(
|
|
||||||
</video>
|
|
||||||
{{ with .Get "title" }}
|
|
||||||
<figcaption>
|
|
||||||
<h4>
|
|
||||||
{{ . }}
|
|
||||||
</h4>
|
|
||||||
</figcaption>
|
|
||||||
{{ end }}
|
|
||||||
</figure>
|
|
Loading…
x
Reference in New Issue
Block a user