{% set collection = page.collection() %}
{% set image = page.media.images|first %}

{% for item in collection if page.template == "footer" %}
  {{item.title}}
{% endfor %}
    <section id="footer" class="section blog-listing">
      {% if image %}
      {{image.html}}
    {% endif %}

    {% for item in collection %}
    <div class="sub-content">
      <h3>{{item.title}}</h3>
      {{item.content}}
    </div>
    {% endfor %}
  </section>
