tomafro-jekyll 0.5.3.5 → 0.5.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/jekyll/post.rb +5 -2
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/jekyll/post.rb
CHANGED
@@ -200,8 +200,11 @@ module Jekyll
|
|
200
200
|
path = File.join(dest, CGI.unescape(self.url))
|
201
201
|
|
202
202
|
if template[/\.html$/].nil?
|
203
|
-
|
204
|
-
|
203
|
+
if site.pretty_style == :html_extension
|
204
|
+
path = path + ".html"
|
205
|
+
else
|
206
|
+
path = File.join(path, "index.html")
|
207
|
+
end
|
205
208
|
end
|
206
209
|
|
207
210
|
File.open(path, 'w') do |f|
|