Skip to content

Commit 846c98f

Browse files
Add support for posts collection disabling
1 parent ce483fb commit 846c98f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/jekyll-feed/generator.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ def collections
6767
{}
6868
end
6969

70-
@collections = normalize_posts_meta(@collections)
70+
if config["posts"] != false
71+
@collections = normalize_posts_meta(@collections)
72+
end
73+
7174
@collections.each_value do |meta|
7275
meta["categories"] = (meta["categories"] || []).to_set
7376
end

0 commit comments

Comments
 (0)