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