{% set blockclass = "" %} {% if page.taxonomy.tag %} {% for tag in page.taxonomy.tag %} {% set blockclass = blockclass ~ " " ~ tag|replace({'|': "-", " " : ""}) %} {% endfor %} {% endif %}
{% if display == 'img' %} {% set image = page.media['00-home.jpg'] %} {% if image == null %} {% set image = page.media.images|first %} {% endif %} {% if page.taxonomy.tag %} {{ dump(catlist) }} {% endif %} {{ image.resize(500).html }}

{{page.title}} {{page.date|date("Y")}}

{{page.header.subtitle}}

{% endif %} {% if display == 'text' %}

{{page.title}} - {{page.date|date("Y")}}

{% set image = page.media['00-cat.jpg'] %} {% if image == null %} {% set image = page.media.images|first %} {% endif %} {{ image.resize(500).html }} {% endif %}