jekyll-feed icon indicating copy to clipboard operation
jekyll-feed copied to clipboard

Combining multiple collections into the main feed

Open iBug opened this issue 1 year ago • 3 comments

Basically a re-request from #289.

Currently I'm relying on a hack onto core Jekyll to achieve this:

# _plugins/set_posts.rb
Jekyll::Hooks.register :site, :post_read do |site|
  c = site.collections
  c['posts'].docs.concat c['news'].docs
  c['posts'].docs.concat c['planet'].docs
end

This way my feed.xml contains posts from all three collections. However as of Jekyll 4.3, jekyll doctor complains about multiple source files pointing to the same output file. It's absolutely right that I basically just duplicated all posts from desired collections into the _posts collection.

Now I can't find another good way to work around this, so I have to bring #289 up again. It's useful and hopefully easy to implement.

iBug avatar Apr 04 '23 08:04 iBug

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master/main branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

jekyllbot avatar Jun 04 '23 09:06 jekyllbot

I would really appreciate this feature too!

0xb120 avatar Jun 17 '23 20:06 0xb120

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master/main branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

jekyllbot avatar Aug 17 '23 21:08 jekyllbot