Site#configure_theme: warn in case the 'theme' config is not a string
This commit is contained in:
parent
2bd592077d
commit
b937757dce
|
@ -424,7 +424,14 @@ module Jekyll
|
||||||
private
|
private
|
||||||
def configure_theme
|
def configure_theme
|
||||||
self.theme = nil
|
self.theme = nil
|
||||||
self.theme = Jekyll::Theme.new(config["theme"]) if config["theme"].is_a?(String)
|
return unless config["theme"]
|
||||||
|
|
||||||
|
if config["theme"].is_a?(String)
|
||||||
|
self.theme = Jekyll::Theme.new(config["theme"])
|
||||||
|
else
|
||||||
|
Jekyll.logger.warn "Theme:",
|
||||||
|
"value of 'theme' in config should be String, but got #{config["theme"].class}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue