jlelse's Blog

Thoughts, stories and ideas

Micro

This section is for short notes or IndieWeb interactions: Likes, replies, …

in Micro

Yesterday evening I hinted that I will give my blog a new design in the next days. I woke up relatively early today and thought that I could just finish it quickly now. My goals were on the one hand to simplify the design significantly, but on the other hand to save as much HTML and CSS as possible. Now the page should load even faster than it did before. Almost every page on this blog (except the ones with images) uses less than 10 KB for transfer.

Read more

in Micro

Yesterday I wrote about a new “blog feature” showing below a post places on this blog where the post was mentioned. Unfortunately this has a high complexity and is not very fast. Today I tried (and managed) to improve the algorithm so that the complexity is just O(n). However, the code does not work as I expected it to, because Hugo does not provide a way to use global variables.

Read more

in Micro

To give readers a bit more context, I’ve extended my Hugo theme so that it will be displayed below each post if it is mentioned or linked in another post on my blog. This increases the build time from about 7 to about 17 seconds (on my machine it takes 2 seconds, but it is also much faster than the VPS), but I don’t know how I can make it more performant.

Read more

My blog is now faster

in Micro

Yesterday and today I worked very hard on making my blog faster. In the Google Search Console I saw that my blog suddenly gets half as many clicks since a few days and that my pages are only “moderately” fast. I don’t really care about the number of clicks, but I do want the site to be fast. PageSpeed Insights also showed me that the time until the “First Contentful Paint” seems to be longer than a second for many users (and it has to be under a second for it to be considered fast).

Read more

in Micro

I’m not really a TikTok user, but I have discovered a few accounts that are worth following. Since I don’t want to install TikTok under any circumstances and I don’t want to visit the website manually, I built myself a TikTok JSON Feed generator. This tool consists of only a few lines of JavaScript and uses the library tiktok-scraper. Now I can follow TikTok-ers and see new posts in Miniflux. I hope that TikTok will not block my server.

Read more

in Micro

I just upgraded my webserver from Caddy 1 to Caddy 2. It was not so easy to adapt my partly more complex configuration, but in the end I succeeded. I especially like the simplicity of adding plugins to the new version. There is also finally an official Docker Image. Also it is now finally possible to use regular expressions for redirects and rewrites. The new handler syntax is great.

Read more

in Micro

They’re probably happy cows. 🐄🐮

Read more

in Micro

Inspired by the posts of Kev Quirk and Jake Bauer, I did a Lighthouse test of my website. I wanted to see how good my blog is SEO wise. Some shortcomings were pointed out to me, for example I forgot to add rel="noopener" to external links with target="_blank" and in the mobile view some “tap targets” were too close together, so you could have clicked on the wrong one. I have addressed the problems and improved a few things in my theme.

Read more

in Micro

I probably shouldn’t be posting articles at 11:30 at night. Somehow it happens to me too often that I make a mistake while publishing, like missing the title, posting in the wrong category on my blog or something similar. Go to sleep and don’t blog so late, Jan-Lukas!

Read more

in Micro

While in the beginning I integrated almost everything directly into my hugo-micropub tool, I now build separate tools for new features that can be used independently (like this one or this). Most of them simply use the JSON Feed as a kind of API to get information about published articles. Not real microservices, but it goes in that direction.

Read more

Jan-Lukas Else