{% set image = page.media.images|first %}
{% set tax = header.taxonomy.category %}

{% if tax %}

  <div class="block">
    {% if image %}
      <div>
        {{ content|raw }}
      </div>

      <div>
        {% if image %}
          {{ image.html|raw }}
        {% endif %}
      </div>

    {% else %}

      <h3>{{page.title}}</h3>
      {{ content|raw }}

    {% endif %}

    <div class="slider">
        {% for module in page.collection() %}
        <div>
            {{module.content|raw}}
        </div>
        {% endfor %}

    </div>
  </div>

{% else %}
  <div class="block">
    {% if image %}
      <div>
        {{ content|raw }}
      </div>

      <div>
        {% if image %}
          {{ image.html|raw }}
        {% endif %}
      </div>

    {% else %}
      <h3>{{page.title}}</h3>
      {{ content|raw }}
    {% endif %}

    {% for module in page.collection() %}
      {{module.content|raw}}
    {% endfor %}
  </div>

{% endif %}
