Jan-Lukas Else

Tech, life and everything else

Tags: Blog


Published on in 💬 Micro

I finally took the time to fix the reading feature on my blog (the “Read to me, please!” button below the title). Initially, I used the property textContent to get the text content from the DOM element, but I figured out that it’s better to use innerText for this purpose. Read this article on the differences.

I also made the script to not block the rendering anymore by removing it from the critical request chain.

View

Published on in 💬 Micro

It was a very spontaneous decision, but it is now possible to follow my blog via Telegram: https://jlel.se/tgblog

View

How I use the Speech Synthesis API on my blog

Published on in 👨‍💻 Dev
Updated on

I just added the feature to my blog that allows you to have any article read to you. For some articles I already add an MP3 file with a natural sounding pronunciation, but now it is also possible to get articles read aloud that don’t have an MP3 file (if the browser and operating system support this).

View

Published on in 💬 Micro

Just a small note: I deleted my Microblog.pub instance. I liked this piece of software and it’s a nice single-user alternative to Mastodon, but I don’t need a Fediverse instance anymore. My new fediverse strategy is to use my normal blog to post stuff (you can follow me via @en@jlelse.blog and @de@jlelse.blog) and Miniflux to follow people (Mastodon offers RSS user feeds).

If you reply to posts or mention my user handle in a public post on Mastodon, I will receive a notification and your reply will appear in the “Interaction” section under the post. If you interact with a post on your website and don’t automatically send Webmentions, you can also submit the URL in the form below each post.

By removing Microblog.pub from my server it also reduces the need for resources a lot. Python as well as MongoDB don’t seem to be that resource friendly. I currently use the cheapest VPS option from Hetzner and for the few remaining things hosted there (my website, my blog and some Go tools etc.), it’s more than enough.

View

Opinions can change over time

Published on in 💭 Thoughts

Opinions can change over time. And since I often post opinions on my blog, I’ve added a feature to my blog theme that displays a warning message above posts that are over one year old (example).

View

Published on in 💬 Micro
Updated on

I recently tried to improve a few parts of my blog and its theme:

  1. Links in the content are now underlined, to better differentiate between links and bold text.
  2. You can see the section of the entry below the title.
  3. Point 2 also let me reduce the number of linked sections in the main menu.
  4. I added the option to create anonymous comments without an own website by using comment parade.

If you find more things, which I should improve, feel free to contact me.

View

As few images as possible

Published on in 💭 Thoughts

Most of my blog posts don’t have any images for a couple of reasons:

View

A new “Share” option

Published on in 💬 Micro

Thanks to AddToAny, there’s now a “Share” option on my blog. If you find an article share-worthy, simply click on that link and select how to share this article. It should be pretty simple.

In Hugo I use the following line of code to create a share link:

<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener">{{ T "share" }}</a>

{{ T "share" }} is a translation string, but if you don’t care about translations, simply replace this with your preferred string.

View

Automatic Webmention sending

Published on in 💬 Micro

My dynamic Hugo backend (it’s not just Micropub anymore) should now send Webmention requests automatically after publishing a post. I first thought about using the Telegraph API for that, but then just took the webmention library written in Go by Will Norris.

View

ActivityPub support for my blog?

Published on in 💭 Thoughts

I just found this article on how to create a basic ActivityPub server. It let’s me think about adding ActivityPub support to my hugo-micropub project (which then becomes more than just a Micropub endpoint for my Hugo setup). It’s definitely a project I finally want start once I’m done with this semester.

View

Jan-Lukas Else