mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
rename get_base() to containing_dir()
This commit is contained in:
@@ -14,7 +14,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
# 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')
|
||||
end
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ module Jekyll
|
||||
# Returns the new Post.
|
||||
def initialize(site, source, dir, name)
|
||||
@site = site
|
||||
@base = self.get_base(source, dir)
|
||||
@base = self.containing_dir(source, dir)
|
||||
@name = name
|
||||
|
||||
self.categories = dir.split('/').reject { |x| x.empty? }
|
||||
@@ -66,7 +66,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
# 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')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user