Skip to content

Option to only include unique categories in the feed #383

@erikgraa

Description

@erikgraa

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"/>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions