I just set up a media endpoint based on BunnyCDN, inspired by @jlelse’s post. So far, it’s working really well.

For now, I’m not actually using it to post many of the images of the website, even though I could. However, I’m using it to store the webmentions author’s photos. They were being served directly by webmention.io but I think it’s better to serve them myself.

The media endpoint works well: it receives an object and stores it on BunnyCDN. However, I want to add some customization options such as resizings and compressions for images through query parameters, as well as some default ones so I don’t need to always specify them.

Jan-Lukas Else 19 Jan 2020 12:53

After talking to @jlelse, I finally decided not to trouble myself with writing my own static website generator and just improve what I have right now.Optimizing software to run faster is a good thing in itself. If you have to wait less for the software to run, you have more time for other things. โ€ฆ

Wouldn’t it be better to start where minutes or even hours are regularly wasted?

Yup, that was my conclusion and I’m really happy I ended up not wasting more time with whatever I was trying to do.

When I invest time in my own software projects, I use most of it to create new features that allow me to do new things. This morning, I invested a few hours in a feature that allows me to create posts with photos on my blog via an app from my smartphone.

That’s great! I actually have a big list of features and things I want to add to my own website. Will start working more on them after I finish my exams.

But what I haven’t done yet, and what I will do only when there is a more important reason to do so, is rewriting the software, which allows me to receive HTML forms via email, from NodeJS to Go.

I love Go but I ended up picking Node.js for the micropub endpoint and all the API that is running on the back of my website just because it was easier to deal with… for now.

After talking to @jhelse, I finally decided not to trouble myself with writing my own static website generator and just improve what I have right now. I feel so much better now for some reason. I’ve already imported the small design tweaks for the live website. There are, definitely, some other things to improve. However, I will only focus on that next week ๐Ÿ˜

Build a dynamic websiteโ€ฆ or not?

After digressing a bit about building a Micropub endpoint for my website, Iโ€™ve been thinking about the next steps: if I should keep Hugo or move to some other system.

I opened a topic on Hugoโ€™s discourse to see to which point it would be reliable to use the watch mode of Hugo in production and it seems, as I was expecting, that it wasnโ€™t made for that and there is no way of making incremental builds as of right now. And I donโ€™t blame Hugo developers โ€” I understand thatโ€™s quite a big issue and it needs to be a really thoughtful process.

Adding support for Micropub endpoint

Recently, I have talked about restructuring the URLs of my website and adding IndieAuth so I could use my domain as my main online identity to login into services. Along those lines, I came across Micropub. In their own words:

The Micropub protocol is used to create, update and delete posts on oneโ€™s own domain using third-party clients.

So itโ€™s basically a simple common protocol that could let any website get updated using an arbitrary CMS (Content Management Software) or application that supports it. I really enjoyed the spec and thereโ€™s suggestions and issues being worked on.