Skip to content

Commit 5e59de2

Browse files
committed
use path to first custom config file when specified
1 parent f2169b7 commit 5e59de2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/jekyll-admin/server/configuration.rb

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@ def raw_configuration
2828
configuration.read_config_file(configuration_path)
2929
end
3030

31+
def custom_configs
32+
Jekyll::Commands::Serve.custom_configs
33+
end
34+
3135
# Returns the path to the *first* config file discovered
3236
def configuration_path
33-
sanitized_path configuration.config_files(overrides).first
37+
if custom_configs
38+
sanitized_path custom_configs.first
39+
else
40+
sanitized_path configuration.config_files(overrides).first
41+
end
3442
end
3543

3644
# The user's uploaded configuration for updates

0 commit comments

Comments
 (0)