Elnu's Blog

I write about things. Sometimes.



Automatically Update Matomo Excluded IPs

Posted by Elnu on

⚠️ Edited from my forum posts on Matomo forums

I have a dynamic IP address, and every time it changes I had to manually go into Matomo (a free and open-source self-hosted Google Analytics alternative that is endorsed by the EU and has GDPR-compliant privacy tools), check to see if it logged any of my own visits, delete them in the GDPR tools, and update my IP in the general website settings. It was moderately annoying to do, and after doing this every once and a while for a year I wanted to …

Read more »



Cleaning Up HTML with Tidy

Posted by Elnu on

One issue with using static site generators that use templates like Hugo is that their generated HTML files are often incredibly messy, with bad indentation, tons of unneeded whitespace, and overall unconcise formatting. While it is technically possible to fix this in your templates, it takes a lot of effort, makes your templates less readable, and frankly is a waste of time.

To my knowledge, Hugo and most other generators don’t have built-in beautifiers. The reasoning for this is usually …

Read more »



Furigana in Markdown Using Regular Expressions

Posted by Elnu on

TL;DR: Here

Background

As I was building the current a previous version of this website, I came across an issue. In the previous version of the site which I made with Nuxt.js, a Vue.js-based JavaScript web development framework similar to the React-based Next.js, I used markdown-it for rendering my Markdown content. The great thing about markdown-it was how extensible it is: there are a vast number of available npm packages that extend its functionality beyond the base CommonMark …

Read more »