#microformats 2024-09-24
2024-09-24 UTC
nweiz joined the channel
#
nweiz hey folks! I'm interested in using h-entry to represent something similar to Tumblr reblogs where a reply embeds a representation of the post it's replying to
#
nweiz the spec says u-in-reply-to can be "an embedded h-cite" which seems like what I'm after
#
nweiz but I'm not sure what it means to "embed" a structured microformat like that into a property
#
gRegor For reposts, for example, see https://indieweb.org/repost#How_to_Publish

#
nweiz those two things can be intertwined, though—what if I'm reposting something and replying to it at the same time?
#
nweiz do I write something like `<a href="#my-repost-id" class="u-in-reply-to">` and then have `u-repost-of` within `<article class="h-entry" id="#my-repost-id">`?
#
gRegor I'm not aware of any microformats consumers that would use both of those, so probably better off with one or the other. You might also be looking for https://indieweb.org/quotation

#
[Joe_Crawford] https://indieweb.org/repost includes detail on tumblrs notion of a reblog
#
nweiz here's an example, where the account @massachusetts-official reposted and replied to a post by @casquecest https://www.tumblr.com/massachusetts-official/762452450719465472/official-post-of-massachusetts
#
nweiz worth noting that https://indieweb.org/quotation explicitly says that reposts are preferred when quoting an entire post
#
nweiz the former more than the latter, generally
#
nweiz half the people I might end up in a network with are using static site generators anyway, so backreferences are relatively less on my radar
#
nweiz (including me)
#
nweiz and just not do u-in-reply-to at all?
#
gRegor Another way to look at this is the Post Type Discovery algorithm. If you used both properties, most consumers are only going to see it as a reply: https://indieweb.org/post-type-discovery#Algorithm

#
nweiz is it possible to nest h-entries?
#
gRegor For this type of scenario I think you want a nested h-cite. Here's a made up example: https://php.microformats.io/?id=20240924023354216

#
gRegor Here's how the fuller repost example looks parsed: https://php.microformats.io/?id=20240924023700185

[fluffy] joined the channel
#
nweiz sure, makes sense
#
nweiz unrelated question: is there a good solution for when you want a repost of your posts to have somewhat different markup than the original?
#
nweiz for example, I have some components that rely pretty heavily on my own stylesheets to look decent
#
nweiz if someone's reblogging, it'll look a lot better as something much more barebones
#
nweiz with a few inline styles
#
nweiz (which is already a variant I include in my feed)
[tantek], [aciccarello], [schmarty], [fluffy], [Jo], [snarfed], barnaby, barnabywalters, [KevinMarks], zicklepop, [manton], xgpt, jacky, [qubyte], lazcorp and _pi_r2_0[d] joined the channel