Permalink
Browse files

Flatten tags and categories lists. Fixes #741.

  • Loading branch information...
1 parent 0353733 commit 196e26b580c5f001a6671094e046b1c6bbd30f78 @ixti ixti committed with parkr Mar 19, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/jekyll/post.rb
View
3 lib/jekyll/post.rb
@@ -62,6 +62,9 @@ def initialize(site, source, dir, name)
if self.categories.empty?
self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.downcase}
end
+
+ self.tags.flatten!
+ self.categories.flatten!
end
# Get the full path to the directory containing the post files

0 comments on commit 196e26b

Please sign in to comment.