---
layout: default
show_title: true
---
{{ content }}
{% assign parent = page.url | remove:'index.html' %}
{% for page in site.pages %}
{% comment %}
Iterate over the pages under the parent
{% endcomment %}
{% assign checkArray = page.url | split:parent %}
{% if checkArray[0] == "" %}
{% assign subpath = checkArray %}
{% assign splitSubpath = subpath | split:"/" %}
{% if splitSubpath.size == 2 %}
{% unless page.url contains 'html' %}
{% include section_preview.html
url=page.url
title=page.title
content=page.content
%}
{% endunless %}
{% endif %}
{% endif %}
{% endfor %}