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