{% macro summaryMacro(item, url) %} {% switch item.postType %} {% case "article" %} {# article summary: #}

{{ item.name if item.name else item.title }}

{% if item.summary %}

{{ item.summary | safe }}

{% endif %} {% case "reply" %} {# reply summary: #}

Reply to {{ item["in-reply-to"] }}

{% case "like" %} {# like summary: #}

Favourited {{ item['like-of'] }}

{% case "boost" %} {# boost summary: #}

Boosted {{ item["repost-of"] }}

{% case "bookmark" %} {# bookmark summary: #}

Bookmarked {{ item["bookmark-of"] }}

{% case "read" %} {# read summary: #}

{% if item["read-status"].toLowerCase() == "to-read" %} To Read: {% elseif item["read-status"].toLowerCase() == "reading" %} Currently Reading: {% elseif item["read-status"].toLowerCase() == "finished" %} Finished Reading: {% endif %} {% if item["read-of"].startsWith("http") %} {{ item["read-of"] }} {% else %} {{ item["read-of"] }} {% endif %}

{% case "watch" %} {# watch summary: #}

{% if item["watch-status"].toLowerCase() == "to-watch" %} To Watch: {% elseif item["watch-status"].toLowerCase() == "watching" %} Currently Watching: {% elseif item["watch-status"].toLowerCase() == "watched" or item["watch-status"].toLowerCase() == "finished" %} Finished watching: {% else %} Watched: {% endif %} {% if item["watch-of"].startsWith("http") %} {{ item["watch-of"] }} {% else %} {{ item["watch-of"] }} {% endif %}

{% case "rsvp" %} {# rsvp summary: #}

{% if item.rsvp.toLowerCase() == "yes" %} Will attend {% elseif item.rsvp.toLowerCase() == "maybe" %} Might attend {% elseif item.rsvp.toLowerCase() == "no" %} Won't attend {% elseif item.rsvp.toLowerCase() == "interested" %} Interested in {% endif %} {{ item["in-reply-to"] }}

{% endswitch %} {% endmacro %}