$def with (posts) $var classes = "h-feed" $for post in posts:
$if "content" in post: $if "name" in post: $post["name"][0]
$ content = post["content"][0]

$if isinstance(content, str): $content.strip().partition("\n\n")[0] $else: $content …

$else:

$post["content"][0]

$elif "like-of" in post:

Liked $post["like-of"][0]

$elif "bookmark-of" in post:

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

$def head(): $var head = head