{% extends "layout.html" %} {% import "macros.html" as macros %} {% block page_title %}{% if feed %}Entries for {{ macros.feed_title(feed) }}{% else %}Entries{% endif %}{% endblock %} {% block main_title %}{% if feed %}Entries for {{ macros.feed_title(feed) }}{% else %}Entries{% endif %}{% endblock %} {% block body %}
{% for entry in entries %} {% set feed = entry.feed %}

{%- if entry.title and entry.title.strip() -%} {{ entry.title | safe }} {%- else -%} untitled {%- endif -%}

{% if entry.summary %}

{{ entry.summary | striptags | truncate }}

{% elif entry.content %} {% set content = ( ( entry.content | selectattr('type', 'equalto', 'text/html') | first ) or ( entry.content | selectattr('type', 'equalto', 'text/xhtml') | first ) or ( entry.content | selectattr('type', 'equalto', 'text/plain') | first ) ) %} {% if content %}

{{ content.value | striptags | truncate }}

{% endif %} {% endif %} {% if entry.enclosures %} {% endif %}
{% else %}

no {% if current_what != 'all' %}{{ current_what }} {% endif %}entries for this feed

{% endfor %} {% endblock %}