Welcome to mirror list, hosted at ThFree Co, Russian Federation.

video.html « extra « partials « layouts - github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14b912e8caf9d9dbabf418face08378e970fa7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<video preload="auto" autoplay loop muted {{ with .Params.video_preview_fallback }}poster="{{ . }}"{{ end }} class="{{ .Scratch.Get "class" }}">
    {{ with .Params.video_preview_mp4 }}
        <source type="video/mp4" src="{{ . }}">
    {{ end }}
    {{ with .Params.video_preview_ogv }}
        <source type="video/mp4" src="{{ . }}">
    {{ end }}
    {{ with .Params.video_preview_fallback }}
        <img src="{{ . }}">
    {{ end }}
</video>