Skip to content

Commit

Permalink
Add support for posts collection disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFevrier committed Apr 12, 2021
1 parent 9134151 commit 7d210c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/jekyll-feed/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def collections
{}
end

@collections = normalize_posts_meta(@collections)
if config["posts"] != false
@collections = normalize_posts_meta(@collections)
end

@collections.each_value do |meta|
meta["categories"] = (meta["categories"] || []).to_set
end
Expand Down

0 comments on commit 7d210c5

Please sign in to comment.