Skip to content

Commit 852d868

Browse files
jmooringbep
authored andcommitted
tpl/tplimpl: Update youtube shortcode
Pass a map instead of a slice to the collections.Querify function.
1 parent 1e34e5b commit 852d868

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tpl/tplimpl/embedded/templates/shortcodes/youtube.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,7 @@
8484
{{- if $loop }}
8585
{{- $params = merge $params (dict "playlist" $id) }}
8686
{{- end }}
87-
{{- $s := slice }}
88-
{{- range $k, $v := $params }}
89-
{{- $s = $s | append $k }}
90-
{{- $s = $s | append $v }}
91-
{{- end }}
92-
{{- with querify $s }}
87+
{{- with querify $params }}
9388
{{- $src = printf "%s?%s" $src . }}
9489
{{- end }}
9590

0 commit comments

Comments
 (0)