-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtoc.html
More file actions
27 lines (24 loc) · 837 Bytes
/
toc.html
File metadata and controls
27 lines (24 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
layout: default
title: Table of Contents
description: List of all major articles
---
<div class="wrap">
<div class="description">
<h1>Table of Contents</h1>
This document presents a list of all major articles for an easy overview.
{% for collection in site.data.chapters%}
{% assign collectionName = collection[0] %}
{% assign chapter = site.data.chapters[collectionName] %}
<h2><a href="/{{collectionName}}">{{collection[1].title}}</a></h2>
{% for section in chapter.sections %}
<ul><h3>{{section.title}}</h3>
{% assign items = site[collectionName]| where: 'section', section.title | sort: 'order' %}
{% for item in items %}
<li><a href="{{item.url}}">{{item.title}}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endfor %}
</div>
</div>