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

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