diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-04-28 19:28:14 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-04-28 19:28:14 -0400 |
commit | 47b4026485c89a23c48a9012593cff84f75e7b55 (patch) | |
tree | aefb1b4ff65ed68319a3553004ac929b82478cb1 /_includes | |
parent | b293b709cba60ee827697928595e1b65ce96f1e3 (diff) | |
download | cobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.tar.xz cobalt-site-47b4026485c89a23c48a9012593cff84f75e7b55.zip |
More sensible post organization and TOC.
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/toc.liquid | 20 |
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> |