From 2bd592077df3b7c827e081457aec710bc131e0c3 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 2 Aug 2016 17:11:40 -0700 Subject: [PATCH] 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. --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 9492b693..daf0e3e5 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -424,7 +424,7 @@ module Jekyll private def configure_theme 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 private