Created
July 8, 2014 19:14
-
-
Save jakefentress/13b7e7de5454b6d5ec9d to your computer and use it in GitHub Desktop.
Getting posts based on their category from a page's url.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign category = page.url | remove: '/index.html' | split: '/' | last %} | |
{% for post in site.categories[category] %} | |
<li>{{ post.title }}</li> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment