added video
This commit is contained in:
14
layouts/shortcodes/video.html
Normal file
14
layouts/shortcodes/video.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $src := .Get "src" }}
|
||||
{{ $type := .Get "type" | default "video/mp4" }}
|
||||
{{ $width := .Get "width" | default "100%" }}
|
||||
{{ $height := .Get "height" | default "auto" }}
|
||||
{{ $controls := .Get "controls" | default "true" }}
|
||||
|
||||
<video
|
||||
width="{{ $width }}"
|
||||
height="{{ $height }}"
|
||||
{{ if eq $controls "true" }}controls{{ end }}>
|
||||
|
||||
<source src="{{ $src }}" type="{{ $type }}">
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
Reference in New Issue
Block a user