Theme: configure sass at initialize time so we don't forget
This commit is contained in:
parent
3b2d68d333
commit
49a3f543f3
|
@ -6,6 +6,7 @@ module Jekyll
|
||||||
|
|
||||||
def initialize(name)
|
def initialize(name)
|
||||||
@name = name.downcase.strip
|
@name = name.downcase.strip
|
||||||
|
configure_sass
|
||||||
end
|
end
|
||||||
|
|
||||||
def root
|
def root
|
||||||
|
@ -25,7 +26,9 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def configure_sass
|
def configure_sass
|
||||||
Sass.load_paths << sass_path if sass_path
|
return unless sass_path
|
||||||
|
require 'sass'
|
||||||
|
Sass.load_paths << sass_path
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue