From b08711a8ef291d10d145a6266a893b77b863d2b3 Mon Sep 17 00:00:00 2001 From: Parker Moore <237985+parkr@users.noreply.github.com> Date: Wed, 21 Jul 2021 10:49:01 -0400 Subject: [PATCH] When adding a new plugin, make sure the result is unique --- lib/github-pages/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github-pages/configuration.rb b/lib/github-pages/configuration.rb index 0aa497e..081e90c 100644 --- a/lib/github-pages/configuration.rb +++ b/lib/github-pages/configuration.rb @@ -164,7 +164,7 @@ module GitHubPages theme_name = config.delete("theme") config["remote_theme"] ||= GitHubPages::Plugins::THEMES_TO_CONVERT_TO_REMOTE_THEMES[theme_name] - config["plugins"] = Array(config["plugins"]).concat(["jekyll-remote-theme"]) + config["plugins"] = Array(config["plugins"]).concat(["jekyll-remote-theme"]).uniq end # If the user's 'exclude' config is the default, also exclude the CNAME