summaryrefslogtreecommitdiff
path: root/_includes/toc.liquid
diff options
context:
space:
mode:
author53hornet <53hornet@gmail.com>2019-04-04 17:05:43 -0400
committer53hornet <53hornet@gmail.com>2019-04-04 17:05:43 -0400
commita187a89bc60994f9bd58b6c31f6f3f4275bcb195 (patch)
treeea47686df4e8f49df0cce5d2e2719a9f4a3622b7 /_includes/toc.liquid
parent5a67f495b72f1bdbfbe5dbb770b9d25cc2f16055 (diff)
downloadcobalt-site-a187a89bc60994f9bd58b6c31f6f3f4275bcb195.tar.xz
cobalt-site-a187a89bc60994f9bd58b6c31f6f3f4275bcb195.zip
Finished index layout, page layout; split out common includes.
Diffstat (limited to '_includes/toc.liquid')
-rw-r--r--_includes/toc.liquid21
1 files changed, 21 insertions, 0 deletions
diff --git a/_includes/toc.liquid b/_includes/toc.liquid
new file mode 100644
index 0000000..7e43a04
--- /dev/null
+++ b/_includes/toc.liquid
@@ -0,0 +1,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 -->