diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/vimeo.html')
-rw-r--r-- | themes/default/layouts/shortcodes/vimeo.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/vimeo.html b/themes/default/layouts/shortcodes/vimeo.html new file mode 100644 index 0000000..009ebb0 --- /dev/null +++ b/themes/default/layouts/shortcodes/vimeo.html @@ -0,0 +1,12 @@ +{{- $id := default "1084537" (.Get "id" | default (.Get 0)) -}} +{{- $title := default "Vimeo Video" (.Get "title" | default (.Get 1)) -}} + +<vimeo-video> + <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"> + <iframe loading="lazy" + src="https://player.vimeo.com/video/{{ $id }}?dnt=1" + style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" + title="{{ $title }}" webkitallowfullscreen mozallowfullscreen allowfullscreen> + </iframe> + </div> +</vimeo-video> |