Add grid-side theme
This commit is contained in:
19
themes/grid-side/layouts/partials/extra/video.html
Normal file
19
themes/grid-side/layouts/partials/extra/video.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ $baseUrl := .Site.BaseURL }}
|
||||
<video preload="auto" autoplay loop muted {{ with .Params.video_fallback }}poster="{{ $baseUrl }}{{ . }}"{{ end }} class="{{ .Scratch.Get "class" }}">
|
||||
{{ with .Params.video_webm }}
|
||||
<source src="{{ $baseUrl }}{{ . }}" type='video/webm; codecs="vp8.0, vorbis"'>
|
||||
{{ end }}
|
||||
{{ with .Params.video_ogv }}
|
||||
<source src="{{ $baseUrl }}{{ . }}" type='video/ogg; codecs="theora, vorbis"'>
|
||||
{{ end }}
|
||||
{{ with .Params.video_mp4 }}
|
||||
<source src="{{ $baseUrl }}{{ . }}" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'>
|
||||
{{ end }}
|
||||
{{ with .Params.video_3gp }}
|
||||
<source src="{{ $baseUrl }}{{ . }}" type='video/3gp'>
|
||||
{{ end }}
|
||||
{{ with .Params.video_fallback }}
|
||||
<img src="{{ $baseUrl }}{{ . }}">
|
||||
{{ end }}
|
||||
</video>
|
||||
|
Reference in New Issue
Block a user