$def with (permalink, entry, mentions) $var title = "?" $ p = entry["published"][0] $if re.match("(19|20)\d\d", tx.request.uri.path): $var breadcrumbs = (p.format("MM"), p.format("MMMM"), p.format("DD"), p.format("D")) $var body_classes = ["h-entry"] # widescreen $# $if "mastodon" in entry.get("syndication", []): $ type = discover_post_type(entry) $def render_content(entry): $if "content" in entry: $ content = entry["content"][0]
$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] $var title: RSVP $rsvp to $in_reply_to $var show_title = False $ colors = { $ "yes": "859900", $ "maybe": "b58900", $ "no": "cb4b16", $ }RSVP $rsvp to
$:render_content(entry) $else:$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():
Published
$if "updated" in entry:Updated
\ $entry["visibility"][0]
$ permalink = f"{tx.origin}{entry['url'][0]}"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