summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/toc.liquid20
1 files changed, 11 insertions, 9 deletions
diff --git a/_includes/toc.liquid b/_includes/toc.liquid
index 7e43a04..58f1815 100644
--- a/_includes/toc.liquid
+++ b/_includes/toc.liquid
@@ -6,15 +6,17 @@
</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>
+ {% 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>