{% from 'components/timestamp.html' import timestamp %} {% from 'components/buttons.html' import button %} {% from 'components/links.html' import fancy_link %} {% macro post_card(post) %} {% set src = post.file.path if post.file.path and post.file.path|lower|regex_match("\.(gif|jpe?g|jpe|png|webp)$") %} {% set post_link = g.freesites.kemono.post.link(post.service, post.user, post.id) %}
{{ post.title }}
{% if src %}
{% endif %}
{% endmacro %}