{% extends "layout.html" %} {% import "macros.html" as macros %} {% macro make_title() %} {% if not request.args.q %} Entries{% if feed %} for{% endif %} {% else %} Search for {{ request.args.q }}{% if feed %} in{% endif %} {% endif %} {% if feed %} {{ macros.feed_title(feed) }} {% endif %} {% endmacro %} {% block page_title %}{{ make_title() | striptags }}{% endblock %} {% block main_title %}{{ make_title() }}{% endblock %} {% block body %}
{% for entry in entries %} {% set feed = entry.feed %}

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

{% set content = none %} {% if entry.summary %} {% set content = entry.summary %} {% else %} {% set content = macros.entry_content(entry) | trim %} {% endif %} {% if content %}

{{ content | striptags | truncate }} more

{% endif %} {{ macros.entry_enclosures(entry) }}
{% else %}

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

{% endfor %} {% set limit = request.args.get('limit') | int %} {% if limit -%} {%- set args = request.args.copy() -%} {%- set _ = args.poplist('limit') -%}

showing only the first {{ limit }} entries; show all entries

{%- endif %} {% endblock %}