From: Joe Mooring Date: Fri, 13 Dec 2024 12:08:25 +0000 (-0800) Subject: tpl/tplimpl: Update youtube shortcode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=852d868549fe8281760cdba6834cf32d445d1d46;p=brevno-suite%2Fhugo tpl/tplimpl: Update youtube shortcode Pass a map instead of a slice to the collections.Querify function. --- 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 }}