Generate index pages for tags and filters

This commit is contained in:
Adam Hollett
2016-06-14 11:04:31 -04:00
parent 8590bb5727
commit c2ead29ff9
7 changed files with 45 additions and 15 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<ul class="section__links">
{% for item in site.pages %}{% if item.url contains section/ %}{% unless item.path contains "index" %}
<li><a href="{{ item.url | prepend: site.baseurl }}" class="section__link{% if item.url contains page.url and page.url != "/" %} section__link--is-active {% endif %}">{{ item.title }}</a></li>
<li><a href="{{ item.url | prepend: site.baseurl }}" class="section__link{% if item.url contains page.url and page.url != '/' and page.type != 'index' %} section__link--is-active{% endif %}">{{ item.title }}</a></li>
{% endunless %}{% endif %}{% endfor %}
</ul>
{% endfor %}