lib/jekyll/readers/layout_reader.rb in jekyll-3.0.0.pre.beta8 vs lib/jekyll/readers/layout_reader.rb in jekyll-3.0.0.pre.beta9
- old
+ new
@@ -36,14 +36,14 @@
return unless File.exist?(directory)
Dir.chdir(directory) { yield }
end
def layout_directory_inside_source
- site.in_source_dir(site.config['layouts'])
+ site.in_source_dir(site.config['layouts_dir'])
end
def layout_directory_in_cwd
- dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts'])
+ dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts_dir'])
if File.directory?(dir) && !site.safe
dir
else
nil
end