{% if post.link|length > 0 %}
{{ post.title }}
{% else %}
{{ post.title }}
{% endif %}
{%
include 'vote.twig' with {
target: 'post',
hash_id: post.hashId,
vote: votes[post.id] is defined ? votes[post.id].vote : null,
vote_count: post.vote,
user: user is defined ? user : null
} only
%}
{{ post.created|ago }}
by {{ post.username }}
—
{{ post.commentsCount ? post.commentsCount }} comments