Jan-Lukas Else

Thoughts of an IT expert

Published on in 💬 Micro
Short link: https://b.jlel.se/s/253
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

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.

I wonder when the point comes where it is too much effort for me to find workarounds and I just build my own page generator according to my own needs… Most of my blog setup I have already developed myself.

Jan-Lukas Else
Interactions & Comments