Thursday, 18th January, 2024
I go between wanting a site like kickscondor or whateverthefuckthisis to just a plain text website.
You know when you’ve been talking about something for days or even weeks, and then someone asks you a question about it and you realise they’ve not been understanding you at all. Well I had that at work today. Luckily I’m working at home and they didn’t see my initial reaction.
A shortcut for setting the ID is also provided. Just prefix the ID with a hash symbol:
I’d like to add paragraph anchors to my posts as maybe (rarely but still) I’d like to link back to them. I’ve been on wild goose chases across the internet 🪿🛜, looking at plugins and complex includes but ChatGPT reminded me that kramdown, the markdown processor Jekyll uses, supports paragraph headers out of the box. For example.
I’ll see what this looks like when it’s rendered and probably needs some CSS to tidy it up. The thing will be how do I automate it? The plugins etc did automatically generate the anchors but it wasn’t clear to me how I could see what they were unless I looked at the generated site. I could write a script in 1Writer or VS Code, perhaps based upon UTC time when writing.
Well that doesn’t seem to work.
Remember two days ago, where I talked about not wanting to post rubbish on my site. Well I’ve been browsing a site that does post rubbish and I’d like to repost it here. 🤷♂️
Okay, so the syntax {: #my-id-name}
does work when I use it with the blockquote above (hint: inspect page). So what about paragraphs? Turns out you have to put it on the line below the paragraph and not inline with it. That does make sense now. I just hadn’t noticed that in the docs.
So this is interesting. I also noticed that on the home page the links to the paragraphs are relative to / so I need unique ones across all blog posts. I think my time idea is good enough for that, as long as I include the date. I don’t have automatic insertion, but I think that’s okay for now. If I want to link to something then I’ll most likely insert something myself. Some hotkey thing would be nice to sort out though, then it wouldn’t be that hard to add it to all the paragraphs.
I can also style them using p[id]
in CSS. However, they’re not permalinks, so whilst I could have something to see they won’t actually be a link to it.