{% extends "layout.html" %} {% import "macros.html" as macros %} {% block page_title %} {{ entry.title or 'untitled' }} - {{ super() }} {% endblock %} {% block body %}

{{ macros.title_href(entry.title or 'untitled', external=entry.link) }}

{% set content = entry.get_content() %} {% set summary = entry.get_content(prefer_summary=True) %} {% set summary = summary if summary != content and not (content.value | striptags).startswith(summary.value | striptags) else none %}
{% block entry_actions scoped %} {{ macros.csrf_token_field() }} {{ macros.entry_read_button(entry) }} {{ macros.entry_important_button(entry) }} {% endblock %}
{%- if summary %} {%- endif %} {%- if entry.enclosures %} {%- endif %}
{% if summary %}
{{ summary.value | safe }}
{% endif %}
{% if content %} {% if not content.is_html -%}
{{ content.value }}
{# TODO: toggle button for pre-wrap #} {%- else -%} {{ content.value | safe }} {%- endif %} {% else %}

no content

{% endif %}
{% if entry.enclosures %}
enclosures
{% endif %} {# TODO: links #} {% endblock %}