ideo := .Get 0 | default (.Get "video") }}
{{ $width := .Get "width" }}

{{ if not $video }}
    {{ errorf "layouts/shortcodes/paige/vimeo.html: no video" }}
{{ end }}

{{ $params := slice }}

{{ if not $autoPause }}
    {{ $params = $params | append "autopause=0" }}
{{ end }}

{{ if $autoPlay }}
    {{ $params = $params | append "autoplay=1" }}
{{ end }}

{{ if $background }}
    {{ $params = $params | append "background=1" }}
{{ end }}

{{ if and (ne $byline nil) (ne $byline "") }}
    {{ $params = $param