Permalink
Browse files

Simplify Site#read_layouts.

  • Loading branch information...
1 parent 7d88f72 commit 0e9e7fbc85d29ddc8e85960f177b3926de87f7e9 @mojombo mojombo committed Apr 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/jekyll/site.rb
View
@@ -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['*.*']) }

0 comments on commit 0e9e7fb

Please sign in to comment.