Lego2012
2/3/2017 - 2:18 PM

Table of contents

Table of contents

{% for item in site.data.samplelist.toc %}
  <h3>{{item.title}}</h3>
  
  <ul>
  {% for entry in item.subfolderitems %}
    <li>{{entry.page}}</li>
  {% endfor %}
  </ul>

{% endfor %}
toc:
  - title: Group 1
    subfolderitems:
      - page: Thing 1
      - page: Thing 2
      - page: Thing 3
  - title: Group 2
    subfolderitems:
      - page: Piece 1
      - page: Piece 2
      - page: Piece 3
  - title: Group 3
    subfolderitems:
      - page: Widget 1
      - page: Widget 2 it's
      - page: Widget 3