* Dev Portals Blog Post * Update index.md * Add a video shortcode, use it for the video * Update themes/default/content/blog/building-developer-portals/index.md Co-authored-by: Luke Hoban <luke@pulumi.com> * Add muted, playsinline for mobile * Luje's edits incorporated --------- Co-authored-by: Christian Nunciato <chris@nunciato.org> Co-authored-by: Luke Hoban <luke@pulumi.com>
16 lines
546 B
HTML
16 lines
546 B
HTML
{{ $src := .Get "src" }}
|
|
|
|
{{ $title := default "" (.Get "title") }}
|
|
{{ $controls := default true (eq (.Get "controls") "true") }}
|
|
{{ $autoplay := default false (eq (.Get "autoplay") "true") }}
|
|
{{ $loop := default false (eq (.Get "loop") "true") }}
|
|
|
|
<div class="my-4">
|
|
<video class="flex outline-none rounded w-full" title="{{ $title }}"
|
|
{{ if $controls }} controls {{ end }}
|
|
{{ if $autoplay }} autoplay muted playsinline {{ end }}
|
|
{{ if $loop }} loop {{ end }}>
|
|
<source src="{{ $src }}" />
|
|
</video>
|
|
</div>
|