From 49a3f543f3853c44894c82d8cc70997ef737c5b3 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 21 Apr 2016 16:11:09 -0700 Subject: [PATCH] Theme: configure sass at initialize time so we don't forget --- lib/jekyll/theme.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/theme.rb b/lib/jekyll/theme.rb index d9f7f52d..15ca8c85 100644 --- a/lib/jekyll/theme.rb +++ b/lib/jekyll/theme.rb @@ -6,6 +6,7 @@ module Jekyll def initialize(name) @name = name.downcase.strip + configure_sass end def root @@ -25,7 +26,9 @@ module Jekyll end def configure_sass - Sass.load_paths << sass_path if sass_path + return unless sass_path + require 'sass' + Sass.load_paths << sass_path end private