$for post in posts: $if "name" in post: $post["name"][0], $" ".join(post["content"][0].split()[:10]) $else: $post["content"][0] \ $post["published"][0].diff_for_humans()