15/01/2023

Creating an RSS feed from post files that might each contain multiple posts is not as simple as pulling the last X number of posts from a database.

I will need to get the files collection, sort it by most recent first, parse them in turn to extract posts until reaching the number to be served in the feed.

It shouldn't be very difficult to achieve, just a bit fiddly to make sure I've got everything in the right place.

I could avoid the hassles of splitting the pubDate from the post content by only editing one post at a time but that would lead to a lot more .md files needing to be handled. I think I'll stick with one per day.

hyblog hyblog colin@colinwalker.blog