jsjohnst-jekyll 0.4.1.999.3 → 0.4.1.999.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jekyll/site.rb +6 -6
  2. metadata +1 -1
data/lib/jekyll/site.rb CHANGED
@@ -133,13 +133,13 @@ module Jekyll
133
133
  directories = entries.select { |e| File.directory?(File.join(base, e)) }
134
134
  files = entries.reject { |e| File.directory?(File.join(base, e)) }
135
135
 
136
- # we need to make sure to process _posts *first* otherwise they
137
- # might not be available yet to other templates as {{ site.posts }}
138
- if entries.include?('_posts')
139
- entries.delete('_posts')
140
- read_posts(dir)
141
- end
142
136
  [directories, files].each do |entries|
137
+ # we need to make sure to process _posts *first* otherwise they
138
+ # might not be available yet to other templates as {{ site.posts }}
139
+ if entries.include?('_posts')
140
+ entries.delete('_posts')
141
+ read_posts(dir)
142
+ end
143
143
  entries.each do |f|
144
144
  if File.symlink?(File.join(base, f))
145
145
  # preserve symlinks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsjohnst-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.999.3
4
+ version: 0.4.1.999.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner