Skip to content

Commit 3f64658

Browse files
committed
meta -> collection
1 parent be7477f commit 3f64658

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/jekyll-feed/generator.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def collections
6868
end
6969

7070
@collections = normalize_posts_meta(@collections)
71-
@collections.each_value do |meta|
72-
normalize_categories(meta)
71+
@collections.each_value do |collection|
72+
normalize_categories(collection)
7373
end
7474

7575
@collections
@@ -142,8 +142,8 @@ def normalize_posts_meta(hash)
142142
hash
143143
end
144144

145-
def normalize_categories(meta)
146-
meta_categories = meta["categories"]
145+
def normalize_categories(collection)
146+
meta_categories = collection["categories"]
147147
for_collection = case meta_categories
148148
when Array
149149
meta_categories
@@ -152,7 +152,7 @@ def normalize_categories(meta)
152152
else
153153
[]
154154
end
155-
meta["categories"] = for_collection.to_set
155+
collection["categories"] = for_collection.to_set
156156
end
157157

158158
def disabled_in_development?

0 commit comments

Comments
 (0)