diff --git a/lib/jekyll-feed/generator.rb b/lib/jekyll-feed/generator.rb index 76ef0618..f2dea22b 100644 --- a/lib/jekyll-feed/generator.rb +++ b/lib/jekyll-feed/generator.rb @@ -68,8 +68,8 @@ def collections end @collections = normalize_posts_meta(@collections) - @collections.each_value do |meta| - normalize_categories(meta) + @collections.each_value do |collection| + normalize_categories(collection) end @collections @@ -142,8 +142,8 @@ def normalize_posts_meta(hash) hash end - def normalize_categories(meta) - meta_categories = meta["categories"] + def normalize_categories(collection) + meta_categories = collection["categories"] for_collection = case meta_categories when Array meta_categories @@ -152,7 +152,7 @@ def normalize_categories(meta) else [] end - meta["categories"] = for_collection.to_set + collection["categories"] = for_collection.to_set end def disabled_in_development?