jekyll / jekyll-feed

:memo: A Jekyll plugin to generate an Atom (RSS-like) feed of your Jekyll posts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to only include unique categories in the feed

erikgraa opened this issue · comments

commented

Is it possible to add an option to only enumerate unique items from a post's categories and tags?

Input

---
layout: post
categories: ["Category", "Sub-category"]
tags: ["Tag1", "Tag2", "Category"] 
---

Expected feed.xml

<category term="Category"/>
<category term="Sub-category"/>
<category term="Tag1"/>
<category term="Tag2"/>

Actual feed.xml

The item Category is enumerated twice.

<category term="Category"/>
<category term="Sub-category"/>
<category term="Tag1"/>
<category term="Tag2"/>
<category term="Category"/>

Since the feed renders the same XML tag for items in both site.categories and site.tags, I think this is a bug due to oversight and not a missing feature.

What do you think, @parkr ?

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.

commented

Did you have a chance to look at this, @ashmaroli, @parkr et al?

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.

commented

Would be nice if you could comment on this feature/bug, @ashmaroli / @parkr. :)

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.