{% if photo.attachments.size > 1 %}
{% for a in photo.attachments %}
{% if a.type == 'video' %}
{{a.html}}
{% else %}

{% endif %}
{% endfor %}
{% if photo.attachments.size > 1 %}
{% for a in photo.attachments %}
{% endfor %}
{% endif %}
{% else %}
{% if photo.primary_media.type == 'video' %}
{{photo.primary_media.html}}
{% elsif photo.primary_media.type == 'photo' %}

{% endif %}
{% endif %}
{% if photo.summary.size > 0 %}
{{photo.summary}}
{% endif %}
{{photo.content}}