caneandable.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for the blind community. With our cane, we're able.

Server stats:

76
active users

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 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. npmjs.com/package/@sindresorhu

npm@sindresorhus/slugifySlugify a string. Latest version: 2.2.1, last published: 2 years ago. Start using @sindresorhus/slugify in your project by running `npm i @sindresorhus/slugify`. There are 532 other projects in the npm registry using @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 stackblitz.com/edit/eleventy-w inspired by the Eleventy docs' "Permalinks > Remove trailing slashes" example 11ty.dev/docs/permalinks/#remo

StackBlitzEleventy with lowercase permalinks - StackBlitzBy olets

@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.

Robert Kingett

Thank you you two! Would either of you know how to resolve this particular issue?

Or anyone knowledgable about 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.

github.com/rkingett/myblog/blo

As an example, the tag RSS feed on this page has post title links that go nowhere.

sightlessscribbles.com/posts/t

@olets @bobmonsour @eleventy

GitHubmyblog/content/helpers/tag-feeds.njk at main · rkingett/myblogContribute to rkingett/myblog development by creating an account on GitHub.

@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)