{% include 'block_header_open.html' %} {%- if taxonomy.name -%} {%- set title = taxonomy.name ~ ' | ' ~ site.name -%} {%- else -%} {%- set title = site.name -%} {%- endif -%} {%- if ( taxonomy.paged > 1 ) -%} {%- set turl = site.url ~ taxonomy.url ~ taxonomy.paged ~ '/' -%} {%- else -%} {%- set turl = site.url ~ taxonomy.url -%} {%- endif -%} {{ title }} {% if site.author.twitter %}{% endif %} {% if site.author.twitter %}{% endif %} {% include 'block_header_close.html' %}
{% if taxonomy.name %}

{{ taxonomy.name }}

{% endif %} {% if taxonomy.description %}

{{ taxonomy.description }}

{% endif %} {% for post in posts %} {% if ( ( post.category == 'photo' ) ) %} {% set hentry = 'photo' %} {% elif ( ( post.category == 'article' ) or (post.category == 'journal' ) ) %} {% set hentry = 'article' %} {% elif ( ( post.category == 'note' ) or ( post.category == 'reply' ) ) %} {% set hentry = 'note' %} {% else %} {% set hentry = 'status' %} {% endif %}
{% if post.reactions %}

{% include 'block_reaction.html' %}

{% elif post.title|length %}

{{ post.title }}

{% endif %}
{% if hentry == "article" %}
{%if post.thumbnail %} {{ post.title }} {% else %} {% endif %} {{ post.sumhtml }}
{% else %}
{{ post.html }} {% if ( post.exif ) %} {% include 'block_exif.html' %} {% endif %}
{% endif %}
{% endfor %}
{% if taxonomy.total > 1 %} {# based on: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ #} {% endif %} {% include 'block_footer.html' %}