Skip to content

Commit

Permalink
tpl/tplimpl: Update youtube shortcode
Browse files Browse the repository at this point in the history
Pass a map instead of a slice to the collections.Querify function.
  • Loading branch information
jmooring authored and bep committed Dec 13, 2024
1 parent 1e34e5b commit 852d868
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tpl/tplimpl/embedded/templates/shortcodes/youtube.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@
{{- 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 }}

Expand Down

0 comments on commit 852d868

Please sign in to comment.