Site#configure_theme: do not set theme unless it's a string

Some previous ad-hoc 'themes' used this configuration option to store a hash of values.
In that case, we should simply pretend we have no theme.
This commit is contained in:
Parker Moore 2016-08-02 17:11:40 -07:00
parent da0b456288
commit 2bd592077d
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ 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"] self.theme = Jekyll::Theme.new(config["theme"]) if config["theme"].is_a?(String)
end end
private private