mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Make LayoutReader#layout_directory public.
Since it's being used in a test, let's go ahead and expose it instead of dealing with using Object#send to send the message along.
This commit is contained in:
@@ -14,6 +14,10 @@ module Jekyll
|
||||
@layouts
|
||||
end
|
||||
|
||||
def layout_directory
|
||||
@layout_directory ||= (layout_directory_in_cwd || layout_directory_inside_source)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def layout_entries
|
||||
@@ -33,10 +37,6 @@ module Jekyll
|
||||
Dir.chdir(directory) { yield }
|
||||
end
|
||||
|
||||
def layout_directory
|
||||
@layout_directory = (layout_directory_in_cwd || layout_directory_inside_source)
|
||||
end
|
||||
|
||||
def layout_directory_inside_source
|
||||
# TODO: Fix for Windows
|
||||
File.join(site.source, File.expand_path(site.config['layouts'], "/"))
|
||||
|
||||
Reference in New Issue
Block a user