I am defeated by Hugo’s syntax highlighter. I don’t use code blocks much around here, but the few I have do not want to play nice, and show fonts with different sizes on desktop, and mobile. I haven’t been able to figure out, for the good of me, how to fix that weird behaviour. For now, the few code blocks I around have syntax highlighting turned off.
Update: 06 Oct 2025 @ 19:34:06
OMG! This guy is a saviour! In his own words:
“Lately, I’ve been coming across many blogs that have weird font-size rendering issues for code blocks on iOS. Basically, in a code snippet, the text-size would sometimes be much larger for some lines than others.”
Exactly my problem. Applied the fix he recommends and, boom, just like that, magic! Thank you, Nathan!
code {
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
I have added the ability to use emoji as a note marker. For example, this one has a hammer and wrench emoji. It’s simply an entry on the front matter of the note. I will not abuse it, but I think it is going to be useful. If ends up not to be, removing it will be pretty simple, thanks to sed.
I am starting to wonder if 17 pixels is a tad too small of a font size for these notes. Under macOS the font size looks fairly legible, but under Ubuntu it seems a tad too small. I will need to check, and make sure screen resolution is the same for both, before doing any further fiddling.
Update: 03 Oct 2025 @ 21:08:04
My main mistake is to use pixels for font sizes. This evening I will be changing them all to use rem/em instead. Still, everything will look smaller at higher resolutions.
I have automated the process that adds a notice and timestamp when I edit a note, when adding more content to it at a later time. It works great, as it uses the git lastmod timestamp. The unfortunate side effect was, all timestamps got reset because I actually modified all notes that had an UPDATE notice. 😩
This bash code is what I use to count the amount of notes per year, ever since I started babbling in here. I first move to the content/posts/ directory, then run it. It works great under macOS.
for file in *.md; do \
head -n 5 "$file" | \
grep 'date:' | \
sed 's/date.*\([[:digit:]]\{4\}\).*/\1/' >> count; \
done && \
cat count | sort | uniq -c && \
rm count
I am trying to implement a workflow, so that I can use a graphical editor for creating new notes while in front of the computer, that is, not over an SSH connection. Let’s see how it goes.
Update: 02 Oct 2025 @ 16:49:20
Yup, it works quite well. I really don’t know why it took me this long to implement something as simple as this (I am using Obsidian now to create and edit notes if not over SSH). I guess I usually create notes on Terminal, on Bash, and didn’t have the need for anything else. Until now!
hugo techEver since I moved from WordPress (ugh!) to Jekyll at the beginning of 2011, and then to Hugo, sometime in 2014, I haven’t had comments on any website I have dabbled with. I want to believe I have been happier that way. For a few I tried kudos here, using Tinylytics, but that didn’t last long.
Less is, truly, more.
hugo staticgenI have found myself on Nicholas’ “shoes” in quite a few occasions. Those occasions on which Hugo has changed its codebase around, and things that used to work worked no longer. I have been tempted to switch, but then what? Grass is always greener on the other side, and what brought me to it (the other side, that is) will not be the last. Time and again I ended up going to Hugo’s community, and each time I found the fix I needed.
It is my very personal opinion that nothing beats Hugo when it comes to simplicity. Nothing extra to install, just a single binary. Beyond its simplicity, it’s extremely powerful.
hugo techIf you have JavaScript enabled in your browser (who doesn’t these days?!), old anchor links will now work, instead of what I previously stated. I will not be creating anchor links anymore, but old ones in use elsewhere will work.
hugoI have managed to break links a bit further, and it is no longer possible—nor the old ones will work—to create anchor links within the paginated index. On the upside, I am not touching URIs ever again!
hugo techFiddled a bit more with Notes, because I can’t stay still. Hopefully still looks simple, and minimalist. That has always been my aim.
hugoI did it again, I am breaking URIs here. After 100 notes, the main page will paginate, which will break internal references, and external links. Hopefully this is the last time I do this. Good thing there is only one incoming link, that I know off. I can now fix the internal ones, as there are not too many. 😅
hugoHaving grown tired of seeing “Added or edited a note, or tweaked something.” on the commit logs for these notes, I have now tweaked the new note script to ask for a commit message. This is the maiden voyage, let’s see if it works.
Update: 04 Oct 2025 @ 17:18:14
It works! Added editing old notes too. Considering migrating from the vi editor to Typora for any note with media in it.
For as much as I hate doing this, I believe—unless I find a way further down the line to bring in the old entries—this is a fresh start here. Why? Because the way I was crafting these little notes would not scale. At certain point I used Hugo, then wiped it by mistake (because I do idiotic things sometimes), and then I concocted this Frankenstein of a Bash script. The end result is a file that doesn’t allow for easy editing, nor it is portable. So, here we are.
This time I am starting over—again—with Hugo. Everything in life is ephemeral, and this is no different.
hugo selfhost