Way to go sniping myself with figuring out a neat way to do bandcamp embeds. Turns out you can getRemote the url of what you want to embed and then likely find relevant embed links and data in the meta tags using findRESubmatch. Don’t forget to safeURL it!
If you don’t mind the loss of interactivity you could get rid of the iframe entirely by extracting the track info and album cover to host locally… Later.
It was becomming necessary, so I added rudimentary pagination using HUGOs inbuilt solution. This means replyTos don’t currently count, which might need fixing at some point…
Also I should probably add some little js thing to collapse long reply chains with some readmore buttons.
Okay this thing has been in the works for a bit… And on the backburner for much longer. The general idea is just to have some place to put things that I’d want to share, or might be useful for others.Read More
Immediately obvious TODOs from attempting a first post:
Add the read morefunctionality as a shortcode.
Fix up image rendering.
Do auto-processing of images so I can paste without care. Also a shortcode thing..
Specifically, clear EXIF data and such…
Click-to-maximize.. With higher resolution versions?
Add gallery view style rendering…
Also I’m not used to spur-of-the-moment writing. Interesting exercise.
Also, doing proper automations for creating posts etc was a good idea.
Readmore shortcode as well…
Currently using the details html tag to have a js-free solution. Seems to work fine, as long as the button doesn’t need to move to the bottom. Wondering if that could be solved with css as well…
Next up… Better image rendering?
The building the plane as it takes off approach is pretty neat tbh.