From 196e26b580c5f001a6671094e046b1c6bbd30f78 Mon Sep 17 00:00:00 2001 From: "Aleksey V. Zapparov" Date: Tue, 19 Mar 2013 23:14:39 +0100 Subject: [PATCH] Flatten tags and categories lists. Fixes #741. --- lib/jekyll/post.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 38ae3986..62c36d42 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -62,6 +62,9 @@ module Jekyll 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