{# Quoted post embed — renders when a post quotes another post #} {% if item.quote %}
{% if item.quote.author.photo %} {% else %} {{ item.quote.author.name[0] | upper if item.quote.author.name else "?" }} {% endif %}
{% if item.quote.author.nameHtml %}{{ item.quote.author.nameHtml | safe }}{% else %}{{ item.quote.author.name or "Unknown" }}{% endif %}
{% if item.quote.author.handle %}
{{ item.quote.author.handle }}
{% endif %}
{% if item.quote.published %} {% endif %}
{% if item.quote.name %}

{{ item.quote.name }}

{% endif %} {% if item.quote.content and item.quote.content.html %}
{{ item.quote.content.html | safe }}
{% endif %} {% if item.quote.photo and item.quote.photo.length > 0 %} {% set qPhoto = item.quote.photo[0] %} {% set qFocusStyle = "" %} {% if qPhoto.focus and qPhoto.focus.x != null and qPhoto.focus.y != null %} {% set qFpX = ((qPhoto.focus.x + 1) / 2 * 100) %} {% set qFpY = ((1 - (qPhoto.focus.y + 1) / 2) * 100) %} {% set qFocusStyle = "object-position:" + qFpX + "% " + qFpY + "%;" %} {% endif %}
{{ qPhoto.alt if qPhoto.alt else '' }}
{% endif %}
{% elif item.quoteUrl %} {# Fallback: quote not yet fetched — show as styled link #}
Quoted post: {{ item.quoteUrl }}
{% endif %}