Skip to main content
stuff&things

A Little Clean-up

Iā€™ve spent some time doing a little tidying on the site to make it a little cleaner overall. Iā€™ve honed some colors and added texture to the cards, buttons, and webmention images. This was all just to give it a little more polish. I like it. For now.

One of the other issues I had been running into was the RSS feed not generating properly and, thusly, not pushing to EchoFeed correctly (if at all). After wandering through the wilderness trying to fix it, I hopped onto the 11ty Discord server, popped into the Help channel and had an fix in just a few minutes.

I donā€™t think itā€™s the easiest fix and perhaps someone with better skills than me wouldā€™ve come up with a nicer one, but it works.

Iā€™m using the 11ty RSS plugin on the canary builds. With the way it generates the feed and the way my posts generated to the site, something was pushing them to the RSS feed with earliest posts first (and reposting). So, I added this to my eleventy.config.js file:

eleventyConfig.addCollection("articles", function (collectionsApi) {
    return collectionsApi.getFilteredByGlob("src/posts/*.md");
  });

And then just added that collection:

eleventyConfig.addPlugin(feedPlugin, {
	type: "atom",
	outputPath: "feed.xml",
	collection: {
		name: "articles",
		limit: 0,
	}

I still have a ā€œpostsā€ collection that correctly adds the posts to the site itself in the proper order:

  eleventyConfig.addCollection("posts", function (collectionApi) {
    return collectionApi.getFilteredByGlob("src/posts/*.md").reverse();
  });

The new collection just reverses that one for the RSS feed. I built this site up from a starter template, so I havenā€™t quite dug into why the original ā€œpostsā€ collection needs to be reversed. So, again, there may be a simpler way out there and Iā€™m still (semi-)actively working on it but for now everythingā€™s working as it should be. But Iā€™m also learning some of this as I fix it, break it, and modify it.

Anyway, hereā€™s an album for you: Charm by Clairo.