summaryrefslogtreecommitdiff
path: root/_includes/toc.liquid
diff options
context:
space:
mode:
authorAdam Carpenter <53hornet@gmail.com>2019-04-28 19:28:14 -0400
committerAdam Carpenter <53hornet@gmail.com>2019-04-28 19:28:14 -0400
commit47b4026485c89a23c48a9012593cff84f75e7b55 (patch)
treeaefb1b4ff65ed68319a3553004ac929b82478cb1 /_includes/toc.liquid
parentb293b709cba60ee827697928595e1b65ce96f1e3 (diff)
downloadcobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.tar.xz
cobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.zip
More sensible post organization and TOC.
Diffstat (limited to '_includes/toc.liquid')
-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>