Liquid
{% assign sections = "basics, tags, filters" | split: ", " %} {% for section in sections %}

{{ section | capitalize }}

    {% for page in site.pages %}{% if page.url contains section/ %}{% unless page.path contains "index" %}
  • {{ page.title }}
  • {% endunless %}{% endif %}{% endfor %}
{% endfor %}