Realised today that one of my sites has been broken because a popular adblocker blocks any file called pageview.js: https://github.com/easylist/easylist/blob/6c17106ea9480b35e972aa183ded90e2252880f0/easyprivacy/easyprivacy_general.txt#L2195
I'd recently factored out a file with this name. It's a dev site that tries to have readable file names, but this incentivises minifying!
Related Posts
There are *so many* ways that reading a text file can fail.
Maybe it doesn't exist, it's a broken symlink, it's actually a directory, it's not the encoding you expected, or perhaps you just don't have the correct permissions.
Reporting good errors is surprisingly labour intensive.
I'm experimenting with diagnostics formatting.
* I've added a left margin, showing both the file name and line numbers
* I'm showing one line of context above/below the offending line.
* I'm using grey for comments.
What do you think? Is there anything you'd change?
Today I learnt that you can mix HTML inline in markdown! For example, the following is valid.
Foo <hr/>
I'd assumed that you needed HTML separately, like ``` blocks, but no: https://spec.commonmark.org/0.31.2/#raw-html
Admittedly HTML is very restricted on most sites, but it's helpful for SSGs.