diff --git a/lib/jekyll/draft.rb b/lib/jekyll/draft.rb index 629efd64..32457fac 100644 --- a/lib/jekyll/draft.rb +++ b/lib/jekyll/draft.rb @@ -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 diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 2a5bdafa..e4703c0d 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -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