matflores-jekyll 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jekyll/post.rb +4 -3
- metadata +1 -1
data/lib/jekyll/post.rb
CHANGED
@@ -88,11 +88,12 @@ module Jekyll
|
|
88
88
|
if permalink
|
89
89
|
permalink.to_s.split("/")[0..-2].join("/") + '/'
|
90
90
|
else
|
91
|
-
|
91
|
+
# I don't want to use categories to define the destination directory
|
92
|
+
# prefix = self.categories.empty? ? '' : '/' + self.categories.join('/')
|
92
93
|
if [:date, :pretty].include?(Jekyll.permalink_style)
|
93
|
-
|
94
|
+
date.strftime("/%Y/%m/%d/")
|
94
95
|
else
|
95
|
-
|
96
|
+
'/'
|
96
97
|
end
|
97
98
|
end
|
98
99
|
end
|