{% if post['title'].__len__() > 80 %}
{% if g.user['id'] == post['author_id'] %}
Edit
{% endif %}
{{ post['title'][:80] }}
{% else %}{{ post['title'] }}
{% endif %}by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}
{{ post['body'] }}