I love how on macOS when you plug your laptop in the mac
suddenly decides that it’s a great time to photoanalysisd
which I’m guessing means run a bunch of algorithms over my
photo library and categorise them and stuff?
My laptop is now lava.
I spent about 2h debugging a scroll bug in nomad but finally fixed it 🌞
Now there won’t be random extra lines when scrolling up when
the cursor is on a bracket in vim
… a very specific and
annoying bug.
I joined the LGTB+ group at work. Much excite. :)
That works. The script is quite small:
const origin = window.location.origin
const links = Array.from(document.querySelectorAll("a"))
.filter(a => ! a.href.includes(origin))
links
.forEach(a => a.target = '_blank' )
console.info('external_links.js: ' + links.length + ' links converted')
This is actually the first JavaScript that I’ve used on my blog, which is mostly just a lot of different statically-generated HTML pages, and some clever CSS.
I mean I could inject some JS to my blog site to make sure
that links that are not for lukebarnard.co.uk
are
correctly given the attribute target='_blank'
.
Let’s try that…
Looks like attributes for elements generated from markdown have not been standardised yet, not least because the commonmark.org folk haven’t made up their mind on the syntax in the 5 years they’ve been discussing it.
And currently, Hugo’s markdown parser goldmark only
supports adding attributes to headers, not <a>
sadly.
I should probably fix that weird bug where external links in my site’s - cough - iframe … are opened within the iframe itself.
Maybe Hugo has a way of making certain links target a new tab?
It’s finally done! A year in the making, I finally put up a section on my personal site dedicated to my hobbies.
One job I want to get done is the “fascinated hobbyist” part of my personal site that I never even started.
Now that I’ve got this blog to point at, I feel like I’ve got something to put there!