$def with () $# var classes = ["h-feed"] $for item in get_posts(): $ item_type = item["type"][0]
$if item_type == "entry": $ entry = item $ type = discover_post_type(entry) $if type == "bookmark": $#

$entry["content"]

Bookmarked $entry["bookmark-of"][0]

$elif "rsvp" in entry: $ in_reply_to = entry["in-reply-to"][0]

RSVP'd $entry["rsvp"][0] to $in_reply_to

$elif item_type == "audio/clip":
$elif "audio" in entry: $entry $#
$#
$entry["summary"][0]
$elif "photo" in entry:
$summary[0]
$elif "content" in entry and "name" in entry:

$:entry["name"][0]

$#
$:entry["content"][0]
$elif content := entry.get("content"):
$:content[0]["html"]
$elif "listen-of" in entry: $ listen_of = entry["listen-of"][0] $if isinstance(listen_of, str):

Listened to $listen_of

$else: $ author = listen_of["author"][0] $ youtube_id = listen_of["url"][0].partition("?")[2]
Listened to $author["name"]$listen_of["name"][0]
$# $elif "like-of" in entry: $ like_of = entry["like-of"][0]
Liked $like_of
$elif "bookmark-of" in entry: $ bookmark_of = entry["bookmark-of"][0]
Bookmarked $bookmark_of
$else:
$entry
$elif item_type == "canopy-project": $ project = item
Created project $project["name"][0]
$ published = item['published'][0]

\