Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify Site#read_layouts.

  • Loading branch information...
commit 0e9e7fbc85d29ddc8e85960f177b3926de87f7e9 1 parent 7d88f72
@mojombo mojombo authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/jekyll/site.rb
View
8 lib/jekyll/site.rb
@@ -101,12 +101,12 @@ def read
self.read_directories
end
- # Read all the files in <source>/<dir>/_layouts and create a new Layout
- # object with each one.
+ # Read all the files in <source>/_layouts and create a new Layout object
+ # with each one.
#
# Returns nothing.
- def read_layouts(dir = '')
- base = File.join(self.source, dir, "_layouts")
+ def read_layouts
+ base = File.join(self.source, "_layouts")
return unless File.exists?(base)
entries = []
Dir.chdir(base) { entries = filter_entries(Dir['*.*']) }
Please sign in to comment.
Something went wrong with that request. Please try again.