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.
- ā Previous
RSS and EchoFeed Fix - Next ā
Life, or Something Like It