Skip to content

Commit

Permalink
properly reject directories in _layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Dec 22, 2008
1 parent a9f74bc commit bb67655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Bug Fixes
* Change YAML delimiter matcher so as to not chew up 2nd level markdown headers [github.com/mreid]
* Fix bug that meant page data (such as the date) was not available in templates [github.com/mreid]
* Properly reject directories in _layouts

== 0.2.1 / 2008-12-15
* Major Changes
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def process
def read_layouts
base = File.join(self.source, "_layouts")
entries = Dir.entries(base)
entries = entries.reject { |e| File.directory?(e) }
entries = entries.reject { |e| File.directory?(File.join(base, e)) }

entries.each do |f|
name = f.split(".")[0..-2].join(".")
Expand Down

0 comments on commit bb67655

Please sign in to comment.