--- layout: default --- {% assign group_name = page.path | split: "/" | first %} {% if group_name == "series" %} {% include series_list.html groups=site.collections %} {% else %} {% case group_name %} {% when 'category' %} {% assign groups = site.categories %} {% when 'tag' %} {% assign groups = site.tags %} {% endcase %} {% include group_list.html groups=groups %} {% endif %}