{% if selected_entry %}

{% set _dur = selected_entry.duration_display %} {% set _title_text = selected_entry.title_plain or selected_entry.title or "(untitled)" %} {% set _display_title = ("[" ~ _dur ~ "] " ~ _title_text) if _dur else _title_text %} {# title_html renders the feed's inline formatting; the title= attribute and every other plain context use the tag-stripped text. #} {% set _title_markup = selected_entry.title_html or (selected_entry.title or "(untitled)") %} {% set _display_markup = (("[" ~ _dur ~ "] ") | e ~ _title_markup) if _dur else _title_markup %} {# The title is the way out to the article itself. Opens in a new tab: nothing outside Lectio should replace the Lectio tab, and on a phone this replaces the open-in-new-tab glyph entirely. #} {% if selected_entry.link %}{{ _display_markup | safe }}{% else %}{{ _display_markup | safe }}{% endif %}

{% set _lead_image_shown = selected_entry.lead_image_url and selected_entry.show_lead_in_article and not selected_entry.is_locked %} {% if selected_entry.is_locked %} {# A supporter-locked webcomic strip: the resolved lead image is stale/unresolvable while locked, so show the unlock date instead of a broken image, same fallback the post-list thumbnail uses. Shown regardless of show_lead_in_article -- otherwise a locked entry with that preference off and no text content renders a blank pane instead of any explanation (Sourcery finding on PR #325). #} {% elif _lead_image_shown %} {{ selected_entry.image_title_text or '' }} {% if selected_entry.image_title_text %}

{{ selected_entry.image_title_text }}

{% endif %} {% endif %} {% if selected_entry.audio_feed_suggestion %}
This podcast’s audio is published in a separate feed.
{{ csrf_input(request) | safe }}
{% endif %} {% if selected_entry.content_html %}
{{ selected_entry.content_html | safe }}
{% elif selected_entry.summary %}
{{ selected_entry.summary }}
{% elif not _lead_image_shown and not selected_entry.is_locked %}
No content available.
{% endif %} {% if not _lead_image_shown and not selected_entry.is_locked and selected_entry.image_title_text %}

{{ selected_entry.image_title_text }}

{% endif %}
{% else %}
Select a post from the middle pane.
{% endif %}