Simplify param combination
This commit is contained in:
@@ -53,9 +53,7 @@
|
|||||||
{{ $params = $params | append (printf "start=%v" .) }}
|
{{ $params = $params | append (printf "start=%v" .) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $params }}
|
{{ $params = delimit ($params | sort | uniq) "&" }}
|
||||||
{{ $params = delimit (uniq (sort $params)) "&" }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="mb-3 ratio ratio-16x9">
|
<div class="mb-3 ratio ratio-16x9">
|
||||||
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
||||||
|
Reference in New Issue
Block a user