jsjohnst-jekyll 0.4.1.999.3 → 0.4.1.999.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jekyll/site.rb +6 -6
- 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
|