fix handling of number categories
This commit is contained in:
parent
528c94e481
commit
eae3ae8479
|
@ -76,7 +76,7 @@ module Jekyll
|
||||||
|
|
||||||
def populate_categories
|
def populate_categories
|
||||||
if self.categories.empty?
|
if self.categories.empty?
|
||||||
self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.downcase}
|
self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.to_s.downcase}
|
||||||
end
|
end
|
||||||
self.categories.flatten!
|
self.categories.flatten!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue