selfhost video, drop vimeo
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
{{ $hasText := ne (.RawContent | strings.TrimSpace) "" }}
|
{{ $hasText := ne (.RawContent | strings.TrimSpace) "" }}
|
||||||
{{ $images := .Params.images }}
|
{{ $images := .Params.images }}
|
||||||
|
|
||||||
{{ with .Params.vimeo }}
|
{{ with .Params.video }}
|
||||||
<div class="vimeo" data-vimeo="{{ . }}">
|
<video class="video" controls preload="none" playsinline{{ with $.Params.thumbnail }} poster="{{ . }}"{{ end }}>
|
||||||
<button class="vimeo__play" type="button" aria-label="play video">▶ play</button>
|
<source src="{{ . }}" type="video/mp4">
|
||||||
</div>
|
</video>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if or $images $hasText }}
|
{{ if or $images $hasText }}
|
||||||
|
|||||||
Reference in New Issue
Block a user