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

Lowercase category/tag names

Open bbatsov opened this issue 4 years ago • 3 comments

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.

bbatsov avatar Nov 13 '21 17:11 bbatsov

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

ashmaroli avatar Nov 14 '21 18:11 ashmaroli

Yeah, that makes perfect sense.

bbatsov avatar Nov 14 '21 19:11 bbatsov

The issue is still relevant.

bbatsov avatar Jan 15 '22 09:01 bbatsov