From 6c889c658ed71bdc18e5b767053530618dcf1759 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 22 Jan 2023 02:42:39 -0500 Subject: themes/default/layouts: Tighten up the markup Might be able to get free computation.. --- themes/default/layouts/shortcodes/youtube.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'themes/default/layouts/shortcodes/youtube.html') diff --git a/themes/default/layouts/shortcodes/youtube.html b/themes/default/layouts/shortcodes/youtube.html index 99612ed..9ec1cfb 100644 --- a/themes/default/layouts/shortcodes/youtube.html +++ b/themes/default/layouts/shortcodes/youtube.html @@ -1,10 +1,12 @@ -{{- $url := "www.youtube-nocookie.com" -}} {{- $id := default "aqz-KE-bpKQ" (.Get "id" | default (.Get 0)) -}} {{- $title := default "YouTube Video" (.Get "title" | default (.Get 1)) -}} {{- $start := default "" (.Get "start" | default (.Get 2)) -}} {{- $end := default "" (.Get "end" | default (.Get 3)) -}} {{- $muted := default "" (.Get "muted" | default (.Get 4)) -}} +{{- $url := "www.youtube-nocookie.com" -}} +{{- $controls := "?controls=1" -}} + {{- if (and $start $end) -}} {{ $start = print "&start=" $start }} {{ $end = print "&end=" $end }} @@ -15,11 +17,14 @@ {{- end -}} -