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

get_video.html « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a0a1cd9f73604799a102d6f0c6e696cf5bbae5e2 (plain)
1
2
3
4
5
6
7
{{ if or (hasPrefix .url "//") (or (hasPrefix .url "http://") (hasPrefix .url "https://")) }}
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
    <iframe src="{{ .url }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" frameborder="0" allowfullscreen></iframe>
</div>
{{ else if .url }}
<video class="w-full" src="{{ .url | absURL }}" controls></video>
{{ end }}