{% for src in sources %} {% set source_url = src.source_uri | public_source_url %}
{% if src.download_url %} {% endif %} {% if source_url %} {% endif %}
{% for chunk in src.chunks %}
{% if chunk.page_number is not none %}p.{{ chunk.page_number }}{% else %}#{{ chunk.chunk_idx }}{% endif %}
{% if chunk.thumbnail_url or chunk.image_url %}
Page {{ chunk.page_number or '' }}
{% endif %} {% if chunk.content %}
{{ chunk.content | highlight_content(chunk.highlight_phrases) }}
{% endif %}
{% endfor %}
{% endfor %}