summaryrefslogtreecommitdiff
path: root/_includes/toc.liquid
blob: 58f18151f4aa12d1b3e209aa56b89b414bf0d6b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- begin TOC -->
<div class="box">
    <aside class="menu">
        <p class="menu-label">
        All Posts in {{ page.title }}
        </p>

        <ul class="menu-list">
            {% assign title = page.title | downcase %}

            {% for post in collections.posts.pages %}
                {% if post.categories contains title%}
                    <li>
                        <a href="{{ post.permalink }}">
                            {{ post.title }}
                        </a>
                    </li>
                {% endif %}
            {% endfor %}
        </ul>
    </aside>
</div>
<!-- end TOC -->