jekyll / jekyll-feed

:memo: A Jekyll plugin to generate an Atom (RSS-like) feed of your Jekyll posts
MIT License
826 stars 201 forks source link

Option to only include unique categories in the feed #383

Closed erikgraa closed 9 months ago

erikgraa commented 1 year ago

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"/>
ashmaroli commented 1 year ago

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 ?

jekyllbot commented 1 year ago

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.

erikgraa commented 1 year ago

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

jekyllbot commented 1 year ago

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.

erikgraa commented 1 year ago

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

jekyllbot commented 12 months ago

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.