I've added WebMention support, both sending and receiving (although not currently displaying). I'll write more about that later. I've tightened up the microformats I'm using, particularly including them on nested embeds. It's fun and I'm happy to have this blog set up to play real nice with all these interoperable standards... but so far I don't know anyone else who I can actually interoperate with.
#meta
-
-
Reblogging posts with h-entry
posted Once I add the ability to embed arbitrary blog posts from other blogs on here it's over. I'm gonna be reblogging like a wild animal. Y'all are gonna have your eyes blown clean outta your heads.
Thrilled to announce that I now have this up and running, at least in its most basic aspect. The embed above is automatically generated and pulled down directly from the source post. Nothing in this is specific to my blog; I can also do it with someone else's. By way of example, please enjoy this post from my beautiful wife:
posted on seaslug.garden there is a very specific feeling of relief upon realizing I don’t need to hurry to finish a library book before it’s due, because I definitely will want to buy a copy for future reference and cross-checking.
(the book in question is Gossip Men: J. Edgar Hoover, Joe McCarthy, Roy Cohn, and the Politics of Insinuation by Christopher M. Elias)
Injecting embeds
Here's what the embed looks like in my blog source right now:
{% genericPost "https://nex-3.com/blog/once-i-add-the/", date: "2024-09-20T07:06:00Z", tags: "#meta", author: "Natalie", authorUrl: "/", authorAvatar: "/assets/avatar.webp" %} <p> Once I add the ability to embed arbitrary blog posts from other blogs on here it's over. I'm gonna be reblogging like a wild animal. Y'all are gonna have your eyes blown clean outta your heads. </p> {% endgenericPost %}
I have a template for the embed, some CSS to style it, and a little custom Liquid tag to bring it all together. But the real magic is in how I generate the
genericPost
in the first place. Here's what the original source looks like before I run my embed injector on it:https://nex-3.com/blog/once-i-add-the/
That's it! Just a URL surrounded by empty lines. The injector pulls down the webpage, extracts critical information about the blog post, and replaces the URL with a call to
genericPost
. My Letterboxd and Cohost embeds work the same way, with their own custom templates and metadata that let me match the style of the original websites.Structured post data with h-entry
But I did say that this wasn't specific to my blog. With Letterboxd and Cohost, I've just hard-coded their HTML structure. I can't rely on that if I want to get information from any old blog, though. They all use different HTML structures!
So instead, I'm making use of the h-entry microformat. This is a tiny little specification that defines a way to mark up an existing post to indicate metadata in the existing HTML structure. At its simplest, it's just a few class names annotated with the HTML. Here's the simplified HTML for the post above:
<article class="h-entry"> <p class="attribution"> <a href="/blog/once-i-add-the/" rel="canonical" class="…
-
Once I add the ability to embed arbitrary blog posts from other blogs on here it's over. I'm gonna be reblogging like a wild animal. Y'all are gonna have your eyes blown clean outta your heads.
-
I added the ability to automatically pull down and embed Cohost posts. I just paste the URL on its own line and my automation takes care of the rest (checking it in so it doesn't need to make a separate request each time the build runs). Hopefully this will be the first of many sites I do that with: I want to see if I can integrate the notion of the Tumblr-style "reblog" with a more traditional site-specific blog structure.
In celebration, please enjoy a post I still think back on and chuckle:
Breaking: In an effort to push video game enthusiasts to take graphical fidelity less seriously, the Academy of the English Language issued a ruling today that the term "4K" will be officially pronounced "forkie". This ruling is effective immediately for governmental sources, but non-government entities have until the third of February to update their materials before facing fines from the FCC, CRTC, Ofcom, or other relevant regulatory body.
Immediately afterwards, California-based studio 2K Games issued a press release saying "Fuck dude we really dodged a bullet there. Goddamn can you imagine"
-
this thing has comments now! click through to a post to see 'em. maybe say hey