Skip to content

Commit 7d210c5

Browse files
Add support for posts collection disabling
1 parent 9134151 commit 7d210c5

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
@@ -62,7 +62,10 @@ def collections
6262
{}
6363
end
6464

65-
@collections = normalize_posts_meta(@collections)
65+
if config["posts"] != false
66+
@collections = normalize_posts_meta(@collections)
67+
end
68+
6669
@collections.each_value do |meta|
6770
meta["categories"] = (meta["categories"] || []).to_set
6871
end

0 commit comments

Comments
 (0)