jekyll / jekyll-feed

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

Lowercase category/tag names #351

Open bbatsov opened 2 years ago

bbatsov commented 2 years ago

With the following config:

feed:
  path: atom.xml
  categories:
    - Emacs

the feed for the category Emacs, ends up being named feed/Emacs.xml instead of feed/emacs.xml. I took me a while to figure this out as I expected that the feed would named feed/emacs.xml, but trying to access it resulted in a 404. As capitalized names are uncommon in URLs, I think it makes sense to just lowercase category names.

The same problem exists for tag feeds.

ashmaroli commented 2 years ago

As capitalized names are uncommon in URLs,

To maintain backwards-compatibility, I think the best route would be to support a new configuration:

feed:
  lowercased_feed_url: true   # false by default
bbatsov commented 2 years ago

Yeah, that makes perfect sense.

bbatsov commented 2 years ago

The issue is still relevant.