small stylistic change
This commit is contained in:
parent
f8d76c7bee
commit
a9f74bc076
|
@ -64,9 +64,11 @@ module Jekyll
|
||||||
# Returns <String>
|
# Returns <String>
|
||||||
def dir
|
def dir
|
||||||
path = @categories ? '/' + @categories.join('/') : ''
|
path = @categories ? '/' + @categories.join('/') : ''
|
||||||
permalink ?
|
if permalink
|
||||||
permalink.to_s.split("/")[0..-2].join("/") :
|
permalink.to_s.split("/")[0..-2].join("/")
|
||||||
|
else
|
||||||
"#{path}" + date.strftime("/%Y/%m/%d/")
|
"#{path}" + date.strftime("/%Y/%m/%d/")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The full path and filename of the post.
|
# The full path and filename of the post.
|
||||||
|
|
Loading…
Reference in New Issue