Tonight's Terrible JavaScript soundtrack is ToP https://music.youtube.com/watch?v=Pfim3SKTNkw&feature=share
I am, once again, a man who cares about JSON-LD
I am down a deep, deep rabbithole where I'm about to consider deploying a graph-db in order that I can build my band's static website send help
This seems like it would be an unsupported configuration on Netlify
Chekhov's JSON
I have just normalised (mostly by hand) dozens of YAML files. This endeavour is either very stupid or fiendishly clever (or maybe both). It's certainly way out of hand
Whatever, there's certainly an entertaining blogpost in this
And probably an @emf talk
We may discover, as we so often do, that my primary purpose is to serve as a warning to others
This is proving to be a very stupid idea, but rarely have I let that thwart me in the past
Doing some fucking arcane shit over here, lads. Summoning demons with #JavaScript
Turns out referential integrity is really hard to keep track of with hand-crafted artisan YAML, and there's a reason why we have databases
And now I am knee-deep in #schema.org and #StructuredData. What else would I be doing the day before Christmas Eve?
Attempting to find out if Netlify can handle content-negotiation for my static site (I'm aware this is a profoundly stupid notion), send help
I have solved (hah!) this intermediate problem by building a bespoke #Python SSG purely for the #LinkedData
https://github.com/rawfunkmaharishi/data/blob/main/README.md
And now I get to generate the JSON-LD for our recordings
https://schema.org/MusicAlbum
https://schema.org/MusicRecording
There's every chance the actual website never gets completed because I've burned all my energy on all this #LinkedData
First rough-cut of the website https://rawfunkmaharishi.netlify.app/ (based off the data here: https://json.rawfunkmaharishi.uk/gigs.json)
The design is a bit ropey, and will change massively when we decide on the cover art for the new record, but all the content is there, I think
The OpenGraph tags are working, though
Let's try another one: https://rawfunkmaharishi.netlify.app/gigs/2023/01/12/luna/
Shit, just thought of something: my new fancy multi-tier arrangement is going to make our legendary Book The Band By #PullRequest workflow a lot more complicated https://github.com/rawfunkmaharishi/website-2018/blob/master/gigs/_posts/HOW_TO_BOOK_THE_BAND.md
I hasten to point out that nobody, in the 8 years this has been live, has ever attempted to book the band by #PullRequest
We did once get on the front page of Paul Graham's Awful Orange Website, though https://news.ycombinator.com/item?id=11149584
Man, fuck those guys
Fuck I really hate JavaScript
Love to type `image` in CSS then wonder why nothing's working as expected
So, today, while I've been staying indoors recovering from a cold, I have built:
"Share on #Mastodon" buttons:
https://rawfunkmaharishi.netlify.app/records/re:designed/
https://rawfunkmaharishi.netlify.app/gigs/2023/03/09/luna/
https://github.com/rawfunkmaharishi/website-2023/blob/main/rfm/src/components/ShareThis.astro
I have a question, though: on mobile, when I click one of these buttons, they acquire the `:hover` pseudo-class (and hence change colour), and then they retain it until I click somewhere else. Is there any way to make them give it up automatically after a timeout?
I need something like `element.removeHover()` at this point here where I hide the tooltip https://github.com/rawfunkmaharishi/website-2023/blob/main/rfm/src/components/CalendarLinks.astro#L49 but I've tried a lot of things following a lot of Googling and nothing worked
Started writing a #blogpost about this whole ridiculous endeavour
I have written a slightly rambling #blogpost about building my band's new website https://sam.pikesley.org/blog/2023/02/18/massively-over-engineering-a-static-website/