mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Merge branch 'custom-layout-directory' of https://github.com/tombell/jekyll into tombell-custom-layout-directory
Conflicts: lib/jekyll/site.rb
This commit is contained in:
@@ -59,6 +59,7 @@ module Jekyll
|
||||
'source' => Dir.pwd,
|
||||
'destination' => File.join(Dir.pwd, '_site'),
|
||||
'plugins' => File.join(Dir.pwd, '_plugins'),
|
||||
'layouts' => '_layouts',
|
||||
|
||||
'future' => true,
|
||||
'lsi' => false,
|
||||
|
||||
@@ -101,12 +101,12 @@ module Jekyll
|
||||
self.read_directories
|
||||
end
|
||||
|
||||
# Read all the files in <source>/_layouts and create a new Layout object
|
||||
# Read all the files in <source>/<layouts> and create a new Layout object
|
||||
# with each one.
|
||||
#
|
||||
# Returns nothing.
|
||||
def read_layouts
|
||||
base = File.join(self.source, "_layouts")
|
||||
base = File.join(self.source, self.config['layouts'])
|
||||
return unless File.exists?(base)
|
||||
entries = []
|
||||
Dir.chdir(base) { entries = filter_entries(Dir['*.*']) }
|
||||
|
||||
Reference in New Issue
Block a user