diff options
author | Adam Carpenter <gitlab@53hor.net> | 2019-06-15 21:51:00 -0400 |
---|---|---|
committer | Adam Carpenter <gitlab@53hor.net> | 2019-06-15 21:51:00 -0400 |
commit | b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a (patch) | |
tree | ac8b465789b18d61765be70b48ddf37f37cbc569 /_includes/posts-similar.liquid | |
parent | 402decfde5390d1c84a0a5dd74635de3d7c634c2 (diff) | |
download | cobalt-site-b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a.tar.xz cobalt-site-b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a.zip |
Broke out post links, organized _includes.
Diffstat (limited to '_includes/posts-similar.liquid')
-rw-r--r-- | _includes/posts-similar.liquid | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_includes/posts-similar.liquid b/_includes/posts-similar.liquid new file mode 100644 index 0000000..6879d3b --- /dev/null +++ b/_includes/posts-similar.liquid @@ -0,0 +1,19 @@ +<aside class="menu"> + <p class="menu-label has-text-centered"> + Similar Posts + </p> + + <ul class="menu-list"> + {% for post in collections.posts.pages %} + {% + if post.categories + and page.categories + and page.title != post.title + and page.categories.first + and post.categories contains page.categories.first + %} + {% include post-link.liquid %} + {% endif %} + {% endfor %} + </ul> +</aside> |