Support for Jekyll categories
Should be available in Liquid Templates:
https://github.com/Code52/pretzel/blob/master/src/Pretzel.Logic/Templating/Jekyll/LiquidEngine.cs#L53
- Test that SiteContext populates posts based on category
- Test that template can render all categories associated with a post
- Test that template can render all posts belonging to a category
I'm looking to be able to return a list of posts based on a category. Something like:
<% for post in site.categories.news %> {{content}} <% endfor %>
where "news" is the category
{% for post in site.categories.foo %} {{post.content}} {% endfor %}
Have this working locally, will test with a real site tonight and confirm
Is there a way to render a list of categories on my homepage?
i've tried: {% for category in site.categories %}
Thanks for any help you can give me!! Rob