Finally figured out my RSS issue the other day! So @eleventy really doesn't like capital letters in tag lists. For example, I assumed Eleventy would turn the below tag...
Newsletter
Into,
.com/newsletter/
but I had to go back in and change every tag to lower case! But if I put, Newsletter, in uppercase, URLs would break because for some reason the URLs would come out like this, breaking links.
.com/Newsletter/
So the short story lesson is, if in doubt, keep all tags in lower case because #Eleventy can't really handle capitalization well. At least, on my project anyway!
I had to go back in and change every instance of the tag, Newsletter, into, newsletter. Not expected but it works now!
@WeirdWriter @eleventy According to the #11ty docs, if you apply the universal slugify filter to the tag name, it should convert it to lower case as that filter is based on this npm package which defaults to converting inputs to lower case. For example {{ tag | slugify }} would take Newsletter and turn it into newsletter. https://www.npmjs.com/package/@sindresorhus/slugify
@bobmonsour @WeirdWriter @eleventy if I'm interpreting the problem and suggestion correctly, that suggestion will cover getting the correct links in templates - e.g. pseudocode language mishmash
tags.map(tag => `<a href="/tags/{tag|slugify}">{tag}</a>`
You'll still need to make your permalinks lowercase. You can do that on a per-directory basis with `eleventyComputed` in an `.11tydata` data file. But it sounds like you want it site wide? For that you can use `addGlobalData` in your Eleventy config file. Here's a minimal example https://stackblitz.com/edit/eleventy-with-lowercase-permalinks inspired by the Eleventy docs' "Permalinks > Remove trailing slashes" example https://www.11ty.dev/docs/permalinks/#remove-trailing-slashes
@bobmonsour @WeirdWriter @eleventy ah now I see the code link. I may have misunderstood the problem - looks like you're talking about `tag-pages.md`, where `slugify` in the computed permalinks does look like a complete solution.
Thank you you two! Would either of you know how to resolve this particular issue?
Or anyone knowledgable about #Eleventy really!
When viewing tag RSS feeds, the permalinks don't take me to the posts in question but when I view my full site feed, everything is perfectly fine!
For reference, here is our Tag feed file.
https://github.com/rkingett/myblog/blob/main/content/helpers/tag-feeds.njk
As an example, the tag RSS feed on this page has post title links that go nowhere.
@WeirdWriter @olets @bobmonsour `post.url` in your `tag-feeds.njk` template will already have the slugified URL if you’ve set the permalink of each template that you’re iterating over.
For example if a post is in `collections.AI` it needs to its own permalink with slugify too (set somewhere in the data cascade for that template)
@eleventy @olets @bobmonsour Thank you! @zicklepop about the tag RSS post URL issue, https://fosstodon.org/@eleventy/114257186431870547