


WordPress, on the other hand, exposes a neat and simple REST API. I wanted to avoid parsing HTML, if at all possible. The way these posts are sitting on the filesystem is not optimal for quickly reading through them, as the files are in HTML format. Initially, I thought I’d be able to just read through the static HTML files after each publishes, but that proved to be too hacky. I need to fetch data from my WordPress instance, and then construct an XML file from that.

Okay, not that hard but a little bit tricky still. I need to generate an XML file, that advertises my recent blog posts and some additional metadata about myself. But I’ve been wanting to do a little bit more coding lately, so I chose to build a tool by myself. So, how to best generate such as feed? Perhaps there’s a WordPress plugin I could use in my backend. No-one complained about this, so it might also be that I am the last person to need this – but it wouldn’t hurt to have a fancy rss.xml sitting somewhere. As such, I cannot offer a feed to any of my readers. One of the problems my current solution has that the static generator in WordPress isn’t capable of producing an RSS feed. I had a look at the new, and cool static site generators such as Hugo but I couldn’t invest the time for yet another transformation just now. This solution is still in use today, and I simply love the flexibility of it. I’ve written earlier how I transformed my WordPress-based blog to a static website (see Running a static site in Microsoft Azure using WordPress for content management). But that’s more than fine, as I’m always learning.

Many times when I’m in the middle of debugging some code, I realize the solution I’m about to build has probably been done a thousand times already, by more experienced people. The way I seem to make learning easier for me is to build something. It’s that time again! And by this I mean I was thinking of grabbing a cup of coffee, splashing out a few lines of code and have something useful come out. Thanks for reading my blog! If you have any questions or need a second opinion with anything Microsoft Azure, security or Power Platform related, don't hesitate to contact me.
