rename get_base() to containing_dir()
This commit is contained in:
parent
538c2086a5
commit
1a351284ca
|
@ -14,7 +14,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get the full path to the directory containing the draft files
|
# Get the full path to the directory containing the draft files
|
||||||
def get_base(source, dir)
|
def containing_dir(source, dir)
|
||||||
return File.join(source, dir, '_drafts')
|
return File.join(source, dir, '_drafts')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ module Jekyll
|
||||||
# Returns the new Post.
|
# Returns the new Post.
|
||||||
def initialize(site, source, dir, name)
|
def initialize(site, source, dir, name)
|
||||||
@site = site
|
@site = site
|
||||||
@base = self.get_base(source, dir)
|
@base = self.containing_dir(source, dir)
|
||||||
@name = name
|
@name = name
|
||||||
|
|
||||||
self.categories = dir.split('/').reject { |x| x.empty? }
|
self.categories = dir.split('/').reject { |x| x.empty? }
|
||||||
|
@ -66,7 +66,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get the full path to the directory containing the post files
|
# Get the full path to the directory containing the post files
|
||||||
def get_base(source, dir)
|
def containing_dir(source, dir)
|
||||||
return File.join(source, dir, '_posts')
|
return File.join(source, dir, '_posts')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue