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 May 6, 2023
1 parent ce483fb commit 846c98f
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 @@ -67,7 +67,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 846c98f

Please sign in to comment.