feat: add video shortcode
This commit is contained in:
11
layouts/shortcodes/video.html
Normal file
11
layouts/shortcodes/video.html
Normal file
@ -0,0 +1,11 @@
|
||||
<div class="ratio ratio-{{ with .Get "ratio" }}{{.}}{{ end }}">
|
||||
<video{{ with .Get "attributes" }} {{ . | safeHTMLAttr }}{{ end }}>
|
||||
{{ with .Get "webm-src" -}}
|
||||
<source src="{{ . | relURL }}" type="video/webm">
|
||||
{{ end -}}
|
||||
{{ with .Get "mp4-src" -}}
|
||||
<source src="{{ . | relURL }}" type="video/mp4">
|
||||
{{ end -}}
|
||||
Sorry, your browser doesn't support embedded videos.
|
||||
</video>
|
||||
</div>
|
Reference in New Issue
Block a user