tpl/tplimpl: Update youtube shortcode

Pass a map instead of a slice to the collections.Querify function.
This commit is contained in:
Joe Mooring 2024-12-13 04:08:25 -08:00 committed by Bjørn Erik Pedersen
parent 1e34e5b26d
commit 852d868549

View file

@ -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 }}