From 8631ba0f78498e33063498ab726d1f29c9a5728e Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 23 Jan 2023 21:24:00 -0800 Subject: [PATCH] Simplify param combination --- layouts/shortcodes/paige/youtube.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/shortcodes/paige/youtube.html b/layouts/shortcodes/paige/youtube.html index b6e45512..86c66e19 100644 --- a/layouts/shortcodes/paige/youtube.html +++ b/layouts/shortcodes/paige/youtube.html @@ -53,9 +53,7 @@ {{ $params = $params | append (printf "start=%v" .) }} {{ end }} -{{ if $params }} - {{ $params = delimit (uniq (sort $params)) "&" }} -{{ end }} +{{ $params = delimit ($params | sort | uniq) "&" }}