Renamed tag- and category-instantiation methods

This commit is contained in:
Parker Moore 2013-04-26 20:25:07 +02:00
parent 6d9845a58b
commit 422a4bd5cd
1 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ module Jekyll
self.published = self.is_published
self.setup_categories
self.setup_tags
self.populate_categories
self.populate_tags
end
def is_published
@ -59,14 +59,14 @@ module Jekyll
end
end
def setup_categories
def populate_categories
if self.categories.empty?
self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.downcase}
end
self.categories.flatten!
end
def setup_tags
def populate_tags
self.tags = self.data.pluralized_array("tag", "tags")
self.tags.flatten!
end