diff options
author | Joe Mooring <[email protected]> | 2024-12-13 04:08:25 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-12-13 15:16:55 +0100 |
commit | 852d868549fe8281760cdba6834cf32d445d1d46 (patch) | |
tree | d55a4dda92440a935c984bce7c7a2a897b3f5aef | |
parent | 1e34e5b26d12e470473064b2825f9bbaa2d66c36 (diff) | |
download | hugo-852d868549fe8281760cdba6834cf32d445d1d46.tar.gz hugo-852d868549fe8281760cdba6834cf32d445d1d46.zip |
tpl/tplimpl: Update youtube shortcode
Pass a map instead of a slice to the collections.Querify function.
-rw-r--r-- | tpl/tplimpl/embedded/templates/shortcodes/youtube.html | 7 |
1 files changed, 1 insertions, 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 }} |