aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/youtube.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/shortcodes/youtube.html')
-rw-r--r--themes/default/layouts/shortcodes/youtube.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/default/layouts/shortcodes/youtube.html b/themes/default/layouts/shortcodes/youtube.html
index d257d0d..9af165d 100644
--- a/themes/default/layouts/shortcodes/youtube.html
+++ b/themes/default/layouts/shortcodes/youtube.html
@@ -15,13 +15,12 @@
{{- end -}}
<youtube-video>
- <div>
- <iframe loading="lazy" sandbox="allow-scripts allow-same-origin"
- src="https://{{ $url }}/embed/{{ $id }}{{ "?controls=1" }}{{ $start }}{{ $end }}{{ $muted }}"
- style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"
- allowfullscreen title="{{ $title }}">
- </iframe>
- </div>
+ <iframe loading="lazy"
+ height="300"
+ sandbox="allow-scripts allow-same-origin"
+ src="https://{{ $url }}/embed/{{ $id }}{{ "?controls=1" }}{{ $start }}{{ $end }}{{ $muted }}"
+ allowfullscreen title="{{ $title }}">
+ </iframe>
<figcaption>
{{ $title | markdownify }}:
{{ print "[Link](https://www.youtube.com/watch?v=" $id ")" | markdownify }}