From 3236359560e53ca0f499591f89b9d3b2cf120914 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Feb 2023 21:19:28 -0800 Subject: [PATCH] Remove useless uses of uniq --- layouts/partials/paige/figure.html | 2 +- layouts/shortcodes/paige/vimeo.html | 2 +- layouts/shortcodes/paige/youtube.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/figure.html b/layouts/partials/paige/figure.html index 44eeda5b..c09b3a4f 100644 --- a/layouts/partials/paige/figure.html +++ b/layouts/partials/paige/figure.html @@ -41,7 +41,7 @@ {{ $style = $style | append (printf "width: %v" $width) }} {{ end }} -{{ $style = delimit ($style | sort | uniq) "; " }} +{{ $style = delimit ($style | sort) "; " }} {{ if $float }} {{ if eq $float "start" }} diff --git a/layouts/shortcodes/paige/vimeo.html b/layouts/shortcodes/paige/vimeo.html index 3467a2ce..768f06ee 100644 --- a/layouts/shortcodes/paige/vimeo.html +++ b/layouts/shortcodes/paige/vimeo.html @@ -110,7 +110,7 @@ {{ $params = $params | append "transparent=0" }} {{ end }} -{{ $params = delimit ($params | sort | uniq) "&" }} +{{ $params = delimit ($params | sort) "&" }} {{ $src := print "https://player.vimeo.com/video/" $video }} diff --git a/layouts/shortcodes/paige/youtube.html b/layouts/shortcodes/paige/youtube.html index 68d32961..4c0b782c 100644 --- a/layouts/shortcodes/paige/youtube.html +++ b/layouts/shortcodes/paige/youtube.html @@ -64,7 +64,7 @@ {{ $params = $params | append (printf "start=%v" .) }} {{ end }} -{{ $params = delimit ($params | sort | uniq) "&" }} +{{ $params = delimit ($params | sort) "&" }} {{ $src := print "https://" $host "/" $path }}