From 852d868549fe8281760cdba6834cf32d445d1d46 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 13 Dec 2024 04:08:25 -0800 Subject: tpl/tplimpl: Update youtube shortcode Pass a map instead of a slice to the collections.Querify function. --- tpl/tplimpl/embedded/templates/shortcodes/youtube.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tpl/tplimpl/embedded/templates/shortcodes/youtube.html b/tpl/tplimpl/embedded/templates/shortcodes/youtube.html index 441469d0a..b61c6130a 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/youtube.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/youtube.html @@ -84,12 +84,7 @@ Renders an embedded YouTube video. {{- if $loop }} {{- $params = merge $params (dict "playlist" $id) }} {{- end }} - {{- $s := slice }} - {{- range $k, $v := $params }} - {{- $s = $s | append $k }} - {{- $s = $s | append $v }} - {{- end }} - {{- with querify $s }} + {{- with querify $params }} {{- $src = printf "%s?%s" $src . }} {{- end }} -- cgit v1.2.3