Skip to content

Commit b08711a

Browse files
authored
When adding a new plugin, make sure the result is unique
1 parent 9017e88 commit b08711a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/github-pages/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def migrate_theme_to_remote_theme(config)
164164

165165
theme_name = config.delete("theme")
166166
config["remote_theme"] ||= GitHubPages::Plugins::THEMES_TO_CONVERT_TO_REMOTE_THEMES[theme_name]
167-
config["plugins"] = Array(config["plugins"]).concat(["jekyll-remote-theme"])
167+
config["plugins"] = Array(config["plugins"]).concat(["jekyll-remote-theme"]).uniq
168168
end
169169

170170
# If the user's 'exclude' config is the default, also exclude the CNAME

0 commit comments

Comments
 (0)