---
layout: default
title: Main
---

{% for collection in site.collections %}
  <h3 id="{{ collection | first }}">{{ collection | first }}</h3>

  {% for i in collection[1].docs %}
    <article>
      {% if i.link %}<a class="title-link" hreF="{{ i.link }}">{% endif %}
        <h1>{{ i.title }}</h1>
      {% if i.link %}</a>{% endif %}

      {{ i.content }}
    </article>
  {% endfor %}
{% endfor %}

---
layout: default
title: Main
---

{% for collection in site.collections %}
  <h3 id="{{ collection.label }}">{{ collection.label }}</h3>

  {% for i in collection.docs %}
    <article>
      {% if i.link %}<a class="title-link" href="{{ i.link }}">{% endif %}
        <h1>{{ i.title }}</h1>
      {% if i.link %}</a>{% endif %}

      {{ i.content }}
    </article>
  {% endfor %}
{% endfor %}

Use collection as an object, not as an array
Use collection as an object, not as an array

Following the advice from ["Updating from jekyll 2.x to 3.x"](https://jekyllrb.com/docs/upgrading/2-to-3/)