Flatten tags and categories lists. Fixes #741.

This commit is contained in:
Aleksey V. Zapparov 2013-03-19 23:14:39 +01:00 committed by Parker Moore
parent 0353733455
commit 196e26b580
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ module Jekyll
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.downcase}
end end
self.tags.flatten!
self.categories.flatten!
end end
# Get the full path to the directory containing the post files # Get the full path to the directory containing the post files