Improve breadcrumb helper

- Add support for collections
- Add support for crumb links that point to auto-generated archive pages (courtesy of Jekyll Archives plugin) and single page Liquid spaghetti pages
- Improve styling
This commit is contained in:
Michael Rose
2016-03-11 15:54:16 -05:00
parent 3aa50cc5a5
commit a3d251a18e
4 changed files with 41 additions and 14 deletions

View File

@@ -6,12 +6,7 @@ author_profile: false
---
{% include base_path %}
{% include group-by-array collection=site.recipes field='categories' %}
{% for category in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h2 id="{{ category | slugify }}" class="archive__subtitle">{{ category }}</h2>
{% for post in posts %}
{% include archive-list-single.html %}
{% endfor %}
{% for post in site.recipes %}
{% include archive-list-single.html %}
{% endfor %}