$def with (permalink, entry, mentions) $var title = "?" $ p = entry["published"][0] $if tx.request.uri.path.startswith("2023"): $var breadcrumbs = (p.format("MM"), p.format("MMMM"), p.format("DD"), p.format("D")) $# var body_classes = ["widescreen"] $var classes = ["h-entry"] $# $if "mastodon" in entry.get("syndication", []): $ type = discover_post_type(entry) $if type == "note": ... $#
$weight["num"] $weight["unit"]
$elif type == "audio/clip": $# $var title = entry["name"][0] $#Clipped from $quotation_of
$# XXXBookmarked $bookmark
$elif type == "like": $ like = entry["like-of"][0] $var title: Liked $likeLiked $like
$elif type == "rsvp": $ in_reply_to = entry["in-reply-to"][0]RSVP $entry["rsvp"][0] to
$# $ event = entry["in-reply-to"][0] $# $var title: RSVP'd $entry["rsvp"] to $event["name"] $#RSVP'd $entry["rsvp"]
$event["name"]
$type
$if tx.user.is_owner: $# $# $# $# $if tx.user.is_owner: $# $# $for metric, value in Readability(entry["content"][0]).metrics.items(): $# $#$value$# $# $# XXX $ a = entry["author"] $# $# XXX $# $# $def aside(): $# $#
$entry["visibility"][0]
$# $# $if tx.user.session: $# reply $# $else: $# reply $# $var aside = aside $# $# $elif type == "identification": $# $ identification = entry["identification-of"][0] $# $var title: Identified $identification["name"] $#Identified $identification["name"]
$# $elif type == "follow": $# $ follow = entry["follow-of"][0] $# $var title: Followed $follow["name"] $#Followed $follow["name"]
$# TODO $if tx.user.is_owner: $# TODO $# TODO